mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-23 20:11:06 +00:00
better tweets.json cleanup on each run
This commit is contained in:
parent
e453665420
commit
d29ac1c8c1
|
@ -146,7 +146,7 @@ if source[:4] == 'http':
|
|||
sql.commit()
|
||||
|
||||
else:
|
||||
subprocess.run('rm -f tweets.sjson; twint -u %s -tl --limit 10 --json -o tweets.sjson; jq -s . tweets.sjson > tweets.json' %
|
||||
subprocess.run('rm -f tweets.*json; twint -u %s -tl --limit 10 --json -o tweets.sjson; jq -s . tweets.sjson > tweets.json' %
|
||||
(source,), shell=True, capture_output=True)
|
||||
d = json.load(open('tweets.json','r'))
|
||||
twitter = source
|
||||
|
|
Loading…
Reference in New Issue
Block a user