[M]add logger
This commit is contained in:
parent
55989c0f84
commit
635c7973ea
BIN
__pycache__/jandan_toot.cpython-36.pyc
Normal file
BIN
__pycache__/jandan_toot.cpython-36.pyc
Normal file
Binary file not shown.
@ -65,6 +65,7 @@ def toot(proxy=None):
|
||||
|
||||
session.headers.update(ramdom_ua())
|
||||
if proxy:
|
||||
logger.info('~~~ proxy %s, usable proxy %s', proxy, usable_proxy)
|
||||
session.proxies.update({"https": "https://{}".format(proxy)})
|
||||
|
||||
while page_count and jandan_pic_url:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user