Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix requests error #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion paramspider/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import time
import sys

from urllib3.exceptions import InsecureRequestWarning

requests.packages.urllib3.disable_warnings(InsecureRequestWarning)


logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -53,7 +56,7 @@ def fetch_url_content(url,proxy):
}

try:
response = requests.get(url, proxies=proxy,headers=headers)
response = requests.get(url, proxies=proxy,headers=headers,verify=False)
response.raise_for_status()
return response
except (requests.exceptions.RequestException, ValueError):
Expand Down