У меня есть такой код:
Код: Выделить всё
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)
Подробнее здесь: https://stackoverflow.com/questions/786 ... from-gnews
Мобильная версия