code: def follow(resources, **kwargs):
      
      # subscribe
      client = redis.Redis(decode_responses=True, **kwargs)
      resources = resources if resources else find_resources(client)
      channels = [Keys.EXTERNAL.format(resource) for resource in resources]
      if resources:
          subscription = Subscription(client, *channels)
  
      # listen
      while resources:
          try:
              message = subscription.listen()
              if message['type'] == 'message':
                  print(message['data'])
          except KeyboardInterrupt:
              break
docs: Follow publications involved with resources.