Closed diogopublio closed 4 years ago
Which language did you use?
pt is portuguese
On Sun, Jul 5, 2020 at 8:58 AM kotartemiy notifications@github.com wrote:
Which language did you use?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kotartemiy/pygooglenews/issues/6#issuecomment-653879725, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANFBND5XPWIJ5I67E5Y7FDR2BTFRANCNFSM4OQOXXIQ .
do
pip install pygooglenews --update
the data still returns in english. It seems to ignore the parameter
even sending:
gn = GoogleNews(lang="pt")
I get
{'feed': {'generator_detail': {'name': 'NFE/5.0'}, 'generator': 'NFE/5.0',
'title': 'Top stories - Google News', 'title_detail': {'type':
'text/plain', 'language': None, 'base': '', 'value': 'Top stories - Google
News'}, 'links': [{'rel': 'alternate', 'type': 'text/html', 'href': '
https://news.google.com/?ceid=US:en&hl=en-US&gl=US'}], 'link': '
https://news.google.com/?ceid=US:en&hl=en-US&gl=US', 'language': 'en-US',
'publisher': 'news-webmaster@google.com', 'publisher_detail': {'email': '
news-webmaster@google.com'}, 'rights': '2020 Google Inc.', 'rights_detail':
{'type': 'text/plain', 'language': None, 'base': '', 'value': '2020 Google
Inc.'}, 'updated': 'Mon, 06 Jul 2020 14:04:21 GMT', 'updated_parsed':
time.struct_time(tm_year=2020, tm_mon=7, tm_mday=6, tm_hour=14, tm_min=4,
tm_sec=21, tm_wday=0, tm_yday=188, tm_isdst=0
On Sun, Jul 5, 2020 at 1:31 PM kotartemiy notifications@github.com wrote:
do
pip install pygooglenews --update
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kotartemiy/pygooglenews/issues/6#issuecomment-653909439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANFBNEOML6OPL6OVLIPIFDR2CTG7ANCNFSM4OQOXXIQ .
ok, I know what the problem is here. You have to insert both, language and country.
For example:
gn = GoogleNews(lang="pt", country = "BR")
still does not work
That was my first test
I even tested in the API service, it returns:
"message":"[lang] parameter's form is not correct/not supported language"