mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-05-08 20:43:56 +00:00
Added saving page to file
This commit is contained in:
parent
89b6068a04
commit
1faf11222d
5
twoot.py
5
twoot.py
@ -890,7 +890,12 @@ def main(argv):
|
|||||||
status_id = tweet_id.split('/')[3]
|
status_id = tweet_id.split('/')[3]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.critical('Malformed timeline downloaded from nitter instance')
|
logging.critical('Malformed timeline downloaded from nitter instance')
|
||||||
|
logging.critical('Check ' + TOML['config']['twitter_account'] + '.html')
|
||||||
logging.debug(e)
|
logging.debug(e)
|
||||||
|
# save page to file
|
||||||
|
of = open(TOML['config']['twitter_account'] + '.html', 'w')
|
||||||
|
of.write(twit_account_page.text)
|
||||||
|
of.close()
|
||||||
shutdown(-1)
|
shutdown(-1)
|
||||||
|
|
||||||
logging.debug('processing tweet %s', tweet_id)
|
logging.debug('processing tweet %s', tweet_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user