Iceloof / GoogleNews

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

Date field is always empty #21

Closed harkib closed 4 years ago

harkib commented 4 years ago
from GoogleNews import GoogleNews

#intialize search and saving
googlenews = GoogleNews()
googlenews.setlang('en')
googlenews.setperiod('d')
googlenews.search("tesla")

full_results= googlenews.result()

for result in full_results:
    print(result["date"])
    print(result["link"])
HurinHu commented 4 years ago

It is fixed now, you can use pip install --upgrade GoogleNews to upgrade to 1.3.7