rhiever / TwitterFollowBot

A Python bot that automates several actions on Twitter, such as following users and favoriting tweets.
GNU General Public License v3.0
1.31k stars 447 forks source link

How do i use queries that i want? #87

Open revanthrr opened 8 years ago

revanthrr commented 8 years ago

For example i need to use the https://api.twitter.com/1.1/statuses/retweeters/ids.json to see who retweeted my tweets and be able to handle that data like follow them or add them to a list, but i don't see any json in the init.py file, i am very new to this, is the twitter library used instead of api documentation codes? sorry if i sound very dumb but a little explanation on it would be really helpful, and thank you for this twitterbot it really gave me an introduction to python and how to use api, thank you.

rhiever commented 8 years ago

You can take a look at the code to see how this bot interacts with the Twitter API. This bot doesn't have code to look at who RT'd your tweets, but the operations are very similar.

See https://github.com/rhiever/TwitterFollowBot/blob/master/TwitterFollowBot/__init__.py#L148 for how to look up your current followers through the programmatic Twitter API, for example.