mirror of
https://github.com/jlengrand/twitterboard.git
synced 2026-03-10 08:51:22 +00:00
prepares counter processing. Creates db backup before messing with it.
This commit is contained in:
BIN
twiderboard.db
BIN
twiderboard.db
Binary file not shown.
@@ -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)
|
||||
|
||||
@@ -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
BIN
twiderboard_bkp.db
Normal file
Binary file not shown.
Reference in New Issue
Block a user