mirror of
https://github.com/balkian/bitter.git
synced 2025-04-24 21:59:06 +00:00
Fixed tweet error
This commit is contained in:
parent
1cb86abbdd
commit
c940709df8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user