I tried to crawl https://foodtracer.taipei.gov.tw/Front/Chain/Product?id=12411160 with
> import requests
> `url = 'https://foodtracer.taipei.gov.tw/Front/Chain/Product?id=12411160'
>
> r = requests.post(url)
>
> print(r.status_code) # 200
>
> if r.status_code == requests.codes.ok: # OK! print("OK!")`
But this occurred:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1124)
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='foodtracer.taipei.gov.tw', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1124)')))
requests.exceptions.SSLError: HTTPSConnectionPool(host='foodtracer.taipei.gov.tw', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1124)')))
I tried/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -m pip install --upgrade pip
but the error still occurred.
Is there any other way for me to crawl this website?