KaiDMML / FakeNewsNet

This is a dataset for fake news detection research
1.11k stars 432 forks source link

retweets #46

Open vxyzhang opened 4 years ago

vxyzhang commented 4 years ago

Hi, is the code able to get all the retweets of a tweet, or just the most recent 100?

Twitter's Rest API seems to be only able to get the first 100. Do you know if there's a way to workaround that restriction?

ZeynepP commented 4 years ago

Just came here to ask the same question. It looks like it is the most recent 100. Can you share also the retweet ids or not?

yuyun-haha commented 2 years ago

There’s no way to get more than 100 in one request, and there’s no way to paginate the results to get another 100.(https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-retweets-id)

Unless someone has set up a periodic job that saves the 100 last retweeters to a file.