kotartemiy / pygooglenews

If Google News had a Python library
https://newscatcherapi.com
MIT License
1.26k stars 134 forks source link

not getting full search results when date range includes pre-2020 and post-2020 parameters #13

Open zparkar opened 3 years ago

zparkar commented 3 years ago

The search by date range from_ & to_ don't seem to return the full results when including both pre-2020 and post-2020 date parameters.

For example: search = gn.search(f"intite:{ticker_name}",from_='2017-01-01', to_='2020-12-01') # only the results for 2020 are returned.

I have worked around this for now by splitting this into two queries:

first_search = gn.search(f"intite:{ticker_name}",from_='2017-01-01', to_='2019-12-31') # results returned as expected

second_search = gn.search(f"intite:{ticker_name}",from_='2020-01-01', to_='2020-12-01')# results returned as expected