get_news() fetches results from news.google.com. While a user initiates a GoogleNews object with only 'period' specified (but not start & end dates specified), get_news() will still insert the start and end dates in the search keyword.
start = f'{self.__start[-4:]}-{self.__start[:2]}-{self.__start[3:5]}'
end = f'{self.__end[-4:]}-{self.__end[:2]}-{self.__end[3:5]}'
get_news() fetches results from news.google.com. While a user initiates a GoogleNews object with only 'period' specified (but not start & end dates specified), get_news() will still insert the start and end dates in the search keyword.
In this way, news.google.com will return empty or incomplete results. For example:
Trying this URL will show no results. without before and after in the keywords, the URL will be like: https://news.google.com/search?q=Dearborn+when:1d&hl=en-US&gl=US&ceid=US:en This will show correct list of results.