Kevin_Deng
Junior Member
- Sep 29, 2021
- 105
- 34
I want to get data from Wikipedia API by Python, this is my code:
At first, it works very well, but when i tried too many times, I got the error message as follows:
Does sb know how to solve this problem?
or any better solution?
Thanks.
result = wikipedia.summary(kw,sentences=10)
At first, it works very well, but when i tried too many times, I got the error message as follows:
HTTPSConnectionPool(host='en.wikipedia.org', port=443): Max retries exceeded with url: /w/api.php?list=search&srprop=&srlimit=1&limit=1&srsearch=twotooth+achyranthes+root&srinfo=suggestion&format=json&action=query (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),))
Does sb know how to solve this problem?
or any better solution?
Thanks.