0

I can retrieve status of list_timeline on each execution or loop it and compare it with previous status and print only new status but I want to stream it so whenever new status arrives in list timeline my code block get trigger.

list_status=api.list_timeline(list_id=list_id, count=1)
print(list_status.text)

I have tried streaming user home timeline, keywords and hashtags but could not find way to stream 'list timeline'

3
  • 1
    There is no streaming API for a lists timeline. You have to poll for new entries.
    – Andy Piper
    Jun 16, 2021 at 16:57
  • Thank you. is there free way to avoid polling and only get triggered when data changes. So that I can pass the url of list and get json?
    – CrackerKSR
    Jun 17, 2021 at 6:46
  • There is no way to do that, paid or free - the lists APIs are polling-only.
    – Andy Piper
    Jun 17, 2021 at 13:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.