[M]use https proxy
This commit is contained in:
parent
ec416d418d
commit
b055f0b11b
@ -61,7 +61,7 @@ def toot(proxy=None):
|
||||
id_list = []
|
||||
|
||||
session.headers.update(ramdom_ua())
|
||||
session.proxies.update({"http": "http://{}".format(proxy)})
|
||||
session.proxies.update({"https": "https://{}".format(proxy)})
|
||||
|
||||
while page_count and jandan_pic_url:
|
||||
resp = session.get(jandan_pic_url, timeout=2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user