Simple Algorithm for Web scraping a users twitter profile using Python? | Sololearn: Learn to code for FREE!

0

Simple Algorithm for Web scraping a users twitter profile using Python?

How do you use python to access the Twitter API and scrape a user's profile for specific information?

11/19/2016 5:52:05 AM

Haris Riaz

1 Answer

New Answer

+2

You could use one of the following libraries: https://github.com/geduldig/TwitterAPI https://github.com/bear/python-twitter https://github.com/ryanmcgrath/twython Or write your own twitter parser using urllib2 and html.parser from the standart library or any other parser you choose. In the latter case you would have to write more code and fix it every time twitter changes the page structure. It's not about algorithm, it's more about just coding.