1

I would like to access Twitter via API (to see followers, their followers etc), but without creating a "Twitter Developer API" (which got rejected).

Is there a python package which I can use to accomplish this (without registering a complicated and non-working "Twitter Developer API")?

1

I've used twitter-scraper in the past with reasonable success.

| improve this answer | |
  • But it looks like I cannot obtain e.g. a list of followers of an user. Or a list of users someone follows. – Alex Jul 6 at 8:42
  • @Alex I did not have a need for that functionality. You should be able to add it to the scraper, since it parses HTML from the Twitter website. – Satya Mishra Jul 23 at 18:55
0

The somewhat inelegant way would to use something like BeautifulSoup and traverse the DOM tree for the information you want. This will work to access any data you need to so long as you can see it from a web browser.

It's somewhat time consuming to set up your functions and variables to however twitter organizes their webpage, but it will work. Another related and popular tool is scrapy.

Obviously neither is ideal for accessing twitter information, but without any privileged API access, this is the most straightforward method available.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.