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 = "https://rcms.assam.gov.in/Show_Reports.aspx?RID=86"
page = requests.get(url)
soup = bs(page.text,"lxml")
At your own risk you can do this:
page = requests.get(url, verify=False)
Download the website certificate to your local computer, and then
page = requests.get(url, verify="path to certificate")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With