Iceloof / GoogleNews

Script for GoogleNews
https://pypi.org/project/GoogleNews/
MIT License
314 stars 88 forks source link

'NoneType' object is not iterable #84

Closed kevincal closed 2 years ago

kevincal commented 2 years ago

If self.__results is empty, the sort() fails

HurinHu commented 2 years ago

This means Google is not returning result. The cause may be too frequent requests, or Google recognizes it as robot and block the requests with additional human verification. If possible, set some interval delay and change IP/network.

kevincal commented 2 years ago

Thanks -- you should trap it instead of trying to run a sort on a None

On Wed, Jan 26, 2022 at 9:54 AM Hurin Hu @.***> wrote:

Closed #84 https://github.com/Iceloof/GoogleNews/issues/84.

— Reply to this email directly, view it on GitHub https://github.com/Iceloof/GoogleNews/issues/84#event-5957704918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMM5P7RAFWW25KLM647JDUYAKNFANCNFSM5M3F4R3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>