-
Notifications
You must be signed in to change notification settings - Fork 0
carylee/twitter-location
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Configuration:
first off, install (obviously):
easy_install config
write a configuration file like this:
***********************EXAMPLE****************************
oAuth:
[
{
consumer_key : 'consumer_key'
consumer_secret : 'consumer_secret'
access_token_key : 'access_token'
access_token_secret : 'access_token_secret
}
]
***********************EXAMPLE****************************
Place this in a file called 'myconfig.cfg'
load into your python script like this:
from config import Config
f = file('myconfig.cfg')
cfg = Config(f)
print cfg.oAuth[0].consumer_key
print cfg.oAuth[0].consumer_secret
... and so on
REMEMBER to add your config file to .gitignore
About
A project for Web Information Extraction and Retrieval with Dr. Doug Downey at Northwestern University to predict a Twitter user's location based on his or her tweets.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published