Iceloof / GoogleNews

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

Local language #17

Closed bestzxcmos03 closed 4 years ago

bestzxcmos03 commented 4 years ago

Hello, there's possible to search the news with my language(Thai)? I've tried to search news with Thai language and it's returned [ ].

HurinHu commented 4 years ago

Did you upgrade to last version?

bestzxcmos03 commented 4 years ago

Yes, the latest version is 1.3.4 right?

bestzxcmos03 commented 4 years ago

Oh, I've just found from your code that the link of news that it's search in time period is for 1 hour only. What does the ways I can change the time period?

HurinHu commented 4 years ago

There is not time period setting here, probably the reason is your local environment encoding, and the result has some different structure.

bestzxcmos03 commented 4 years ago

https://github.com/HurinHu/GoogleNews/blob/d7990600df0009e9b032381cd69f7edd2aa5ff73/GoogleNews/__init__.py#L37

In this line at "qdr: h" is set to "h".It's mean that in period 1 hour. And i need to change it to "y" (year) So, how can I do that?

HurinHu commented 4 years ago

Just update a new version. you can set the period when you create object or use setperiod() method.

bestzxcmos03 commented 4 years ago

Thank you. Have a nice day.