mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-05-07 12:03:56 +00:00
Merge branch 'master' of https://gitlab.com/jeancf/twoot
Merging master
This commit is contained in:
commit
735503c1b1
4
twoot.py
4
twoot.py
@ -328,7 +328,11 @@ def main(argv):
|
|||||||
url += '/with_replies'
|
url += '/with_replies'
|
||||||
|
|
||||||
# Download twitter page of user.
|
# Download twitter page of user.
|
||||||
|
try:
|
||||||
twit_account_page = session.get(url, headers=headers)
|
twit_account_page = session.get(url, headers=headers)
|
||||||
|
except requests.exceptions.ConnectionError:
|
||||||
|
logging.fatal('Host did not respond when trying to download ' + url)
|
||||||
|
exit(-1)
|
||||||
|
|
||||||
# Verify that download worked
|
# Verify that download worked
|
||||||
if twit_account_page.status_code != 200:
|
if twit_account_page.status_code != 200:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user