2009-01-03

How to use Twitter-scraping

2008/01/08

Fix some points.

--

Twitter-scraping is a python twitter library. It uses not only API but also HTML scraping.)

1. require
  • python 2.5 or later(now I checked on python 2.5)
  • python-json
  • twitter-scraping.py(you may get git://github.com/showyou/twitter-scraping.git )
2.simple usage


#!/usr/bin/env python
# -*- coding:utf-8 -*-

import twitterscraping

# todo: please rewrite below your_username and your_password
userdata = { "user":"your_username", "pass":"your_password" }
tw = twittwescraping.Twitter(userdata)

#show your friend's timeline
tw.get()



results:

[['yokochie', u'\u6c37\u5ddd\u795e\u793e\u306e\u53c2\u9053\u6b69\u304d\u4e2d', 'Sat Jan 03 05:04:44 +0000 2009', 'http://s3.amazonaws.com/twitter_production/profile_images/57986354/DSC00408_normal.JPG', 5619562], ['Na_IT', ...

1 comment:

SportsGuy said...

How do I use this library to grab a user's follower count?