ranahaani / GNews

A Happy and lightweight Python Package that Provides an API to search for articles on Google News and returns a JSON response.
https://pypi.org/project/gnews/
MIT License
712 stars 106 forks source link

EOF occurred in violation of protocol #100

Open Absence000 opened 3 months ago

Absence000 commented 3 months ago

When trying to use get_news() with the sample code, I've either been getting an empty response or this error message:

06/19/2024 05:45:59 PM - HTTPSConnectionPool(host='news.google.com', port=443): Max retries exceeded with url: /rss/articles/CBMiSmh0dHBzOi8vd3d3LnRoZXZlcmdlLmNvbS8yMDI0LzYvMTkvMjQxODE5NjUvc25hcGNoYXQtYWktcHJvbXB0LWN1c3RvbS1sZW5z0gEA?oc=5 (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

It seems like this error only happens on specific Wi-Fis, since I've never seen this issue until trying to use the module while at another house.