My code is returning an error message, but i don't know why, I've done this same logic many times before and never happened nothing like this, code below:
import requests
from bs4 import BeautifulSoup
site = 'https://www.fea.usp.br/internacional/universidades-conveniadas?pais=All'
req = requests.get(site)
Error message:
- SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
- MaxRetryError: HTTPSConnectionPool(host='www.fea.usp.br', port=443): Max retries exceeded with url: /internacional/universidades-conveniadas?pais=All (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))
- SSLError: HTTPSConnectionPool(host='www.fea.usp.br', port=443): Max retries exceeded with url: /internacional/universidades-conveniadas?pais=All (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))