Created
April 22, 2015 11:24
-
-
Save ikegami-yukino/7a297ea50a0f198645c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session = requests.Session() | |
session.mount('http://', requests.adapters.HTTPAdapter(max_retries=3)) | |
session.mount('https://', requests.adapters.HTTPAdapter(max_retries=3)) | |
response = session.get(lp, headers={'User-agent': UA}, timeout=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment