Does Tweepy support running multiple Streams to collect data?

后端 未结 1 694
遇见更好的自我
遇见更好的自我 2020-12-11 20:43

For example, I\'d like to collect data related to three keywords:

  1. keyword1
  2. keyword2
  3. keyword3

I understand that I could collec

相关标签:
1条回答
  • 2020-12-11 21:27

    Unfortunately, no. Assuming you're using Tweepy's Stream class (which uses the Twitter Streaming API) you can not make multiple connections with a single account. You should also watch out if you try to circumvent this using multiple accounts:

    Each account may create only one standing connection to the public endpoints, and connecting to a public stream more than once with the same account credentials will cause the oldest connection to be disconnected.

    Clients which make excessive connection attempts (both successful and unsuccessful) run the risk of having their IP automatically banned.

    -Twitter Streaming API

    0 讨论(0)
提交回复
热议问题