I'm a nub when it comes to python. I literally just started today and have little understanding of programming. I have managed to make the following code work:
from twitter import *
config = {}
execfile("config.py", config)
twitter = Twitter(
auth = OAuth(config["access_key"], config["access_secret"],
config["consumer_key"], config["consumer_secret"]))
user = "skiftetse"
results = twitter.statuses.user_timeline(screen_name=user, count=(1000), include_rts=True)
for status in results:
print "(%s) %s" % (status["created_at"], status["text"].encode("ascii",
"ignore"))
I was told that the API will only let you retrieve the most recent 3,200 Tweets, however you can only retreive 200 per distinct request. How can I get past the first 200 and move on to retrieve...say 1000?
Would it also be possible to make a chart that shows the posts and how many times it was retweeted?
I would really appreciate help with this! I'm doing this for a research sentiment analysis, so I need a large size to analyze. Thanks!