You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using the Python Gnews package to access news about AI. I would like these news to be only from media of a specific country (Chile). However, I am not getting the google_news.country function that in this package should select only news from a specific country. Instead, it gives me news from many different countries.
This is the code I have:
from gnews import GNews
import datetime
noticias = []
for mes in range(1,3):
start = datetime.date(2019, mes, 1)
end = datetime.date(2019, mes, 5)
country = 'Chile'
google_news = GNews(language='es', start_date=start, end_date=end, country = country)
rsp = google_news.get_news("IA|Inteligencia Artificial")
if rsp is [None]:
pass
else:
noticias.append(rsp)
This problem also occurs when country = 'CL'.
would appreciate advice
The text was updated successfully, but these errors were encountered:
I have been using the Python Gnews package to access news about AI. I would like these news to be only from media of a specific country (Chile). However, I am not getting the
google_news.country
function that in this package should select only news from a specific country. Instead, it gives me news from many different countries.This is the code I have:
This problem also occurs when country = 'CL'.
would appreciate advice
The text was updated successfully, but these errors were encountered: