1
0
mirror of https://github.com/balkian/bitter.git synced 2025-07-10 23:42:21 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
J. Fernando Sánchez
c940709df8 Fixed tweet error 2017-05-21 21:27:46 +02:00

View File

@ -315,12 +315,12 @@ def get_user(c, user):
def download_tweet(wq, tweetid, write=True, folder="downloaded_tweets", update=False):
cached = cached_tweet(tweetid, folder)
newtweet = None
tweet = None
if update or not cached:
newtweet = get_tweet(wq, tweetid)
tweet = get_tweet(wq, tweetid)
js = json.dumps(tweet, indent=2)
if write:
if newtweet:
if tweet:
write_tweet_json(js, folder)
else:
print(js)