-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
52 lines (38 loc) · 1.35 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
INSTRUCTIONS
============
You must create a file called "tokens.py" and add these variables with their corresponding values:
'''
OAUTH_TOKEN= 'your_oauth_token, obtained from developer.twitter.com'
OAUTH_TOKEN_SECRET= 'your_oauth_token_secret'
CONSUMER_KEY='whatever_your_consumer_key_is'
CONSUMER_SECRET='ditto_for_secret'
username = 'list_owner's_twitter_username'
list_name = 'name_of_twitter_list'
LIST_URL = "http://api.twitter.com/1/%s/lists/%s/statuses.json?per_page=190" % (username, list_name)
LIST_MEMBERS_URL = 'http://api.twitter.com/1/%s/%s/members.json' % (username, list_name)
'''
You should also create an empty file called "truck.cursor" in the same directory as truck.py. The function will write into the file the highest cursor number reached when updating the Twitter List Member stream, to reduce the number of API calls each time the function is run.
REQUIREMENTS
============
OAUTH MODULES TO ACCESS THE TWITTER API:
twitter-oauth
oauth2
OTHER MODULES:
rfc822
urllib, urllib2
django-tagging
django.core.cache
SAMPLE TEMPLATES:
Jquery 1.4.4+
Rikloma's Jquery Quicksearch https://github.com/riklomas/quicksearch
ABOUT
=====
Neighborhood Food Truck Tracker
me @ esthernam.com
2011
TODO LIST
=========
- allow you to add a food truck to your Twitter list via Django Admin
- speed up retrieval of truck tweets.
- iPhone style sheet
- Celery integration?