prepares counter processing. Creates db backup before messing with it.

This commit is contained in:
Julien Lengrand-Lambert
2013-01-03 23:54:21 +01:00
parent 859364e329
commit 70d3d7f0b5
4 changed files with 7 additions and 4 deletions

Binary file not shown.

View File

@@ -37,8 +37,11 @@ class Counter():
for elements that have not been crawled yet
"""
query = self.session.query(Tweet).order_by(Tweet.id)
print query.all()
#print query.all()
#print query
#query.all()
for tweet in query:
print tweet.hashtag, tweet.author
engine_url = 'sqlite:///twiderboard.db'
c = Counter(engine_url)

View File

@@ -23,8 +23,8 @@ from encodingUtils import EncodingUtils
# After the step above, you will be redirected to your app's page.
# Create an access token under the the "Your access token" section
root = '/home/test/Documents/twiderboard/' # TODO: do that correctly
#root = '/home/test/Documents/twiderboard/' # TODO: do that correctly
root = '/home/airballman/Documents/twiderboard/twitterboard/' # TODO: do that correctly
class StreamSaverListener(StreamListener):
"""

BIN
twiderboard_bkp.db Normal file

Binary file not shown.