Iceloof / GoogleNews

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

Search <start,end> functionality not working #43

Closed GregorKerr1996 closed 3 years ago

GregorKerr1996 commented 3 years ago
Screenshot 2020-12-10 at 13 24 01

Start date seems to default to 7days ago? seems to work for dates previous to the start of december? any help would be appreciated to get data from 1st to 3rd

note : if search from 1st to 10th december, still only returns 3-10th

sakshiseth commented 3 years ago

@HurinHu If you're not working on this issue. Should I take it up?

HurinHu commented 3 years ago

I have checked the google results, it seems the date range is not always correct as what we set, but it will return the date after start date, unless the search result is less than one page on the date range. If you search by period, it will return the proper results on the first and second page. If you go to third page, and they don't have more than 30 items, the result will be out of date range. Just like the page show below, it is not always correct on the first page, it should be 1 month ago not 2 weeks ago, but google just return with wrong date. We can't make changes on this at the moment. Screen Shot 2021-01-01 at 23 01 35

(BTW: you don't need to get_page(1), when you call search() method, the first page is already fetched, if you fetch again, it may get duplicate result.