We will use Twitter as an example to:
Often has the following properties:
store for latercollection model
A Web API that provides:
#3 and #4 are most interesting for data acquisition.
You need a twitter account and then:
Create New Appbutton.
Name,
Description, and
Websitefields.
Create your Twitter applicationbutton.
API keystab.
Create my access tokenbutton.
You are now dangerous!
Note: See online API documentation.
import tweepy consumer_key = "..." # Your API Key consumer_secret = "..." # Your API Secret access_token = "..." # Your Access Token access_token_secret = "..." # Your Access Token Secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) for tweet in api.search(q="minecraft"): print tweet.text
Live demo
Time for some live demos of a more complete solution...