Max Retries Exceeded with Url Error While Running the Code?
I Write This Code to Scrap This Particular Page but It Constantly Gave Error "Requests. Exceptions. Sslerror: Httpsconnectionpool(Host='Rcms. Assam. Gov. In'...
I write this code to scrap this particular page but it constantly gave
error "requests.exceptions.SSLError: HTTPSConnectionPool(host='rcms.assam.gov.in', port=443): Max retries exceeded with url: /Show_Reports.aspx?RID=86 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))"
import requests
from bs4 import BeautifulSoup as bs
url = ""
page = requests.get(url)
soup = bs(page.text,"lxml")
1 Answer
At your own risk you can do this:
page = requests.get(url, verify=False)