1 Answer
+ 2
You could use one of the following libraries:
https://github.com/geduldig/TwitterAPI
https://github.com/bear/JUMP_LINK__&&__python__&&__JUMP_LINK-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.