GoogleNews
GoogleNews copied to clipboard
Script for GoogleNews
Hi, I have been looking through the code and found that the function ```get_news``` has the url generated as follows: ``` self.url = 'https://news.google.com/search?q={}+when:{}&hl={}'.format(key,self.__period,self.__lang.lower()) ``` (line 259 in ```__init__.py```) This...
Thanks for the great work. I would like to be able to use Google's search techniques as described [here](https://support.google.com/websearch/answer/2466433). I tried to achieve this as follows: ```py googlenews = GoogleNews(lang='en',...
Currently, I did get news in Japanese, datetime is set to None. But I did changed language to en, datetime is setted. please fix it. ```python from GoogleNews import GoogleNews...
Dear Author @HurinHu , Thanks for the package ! Fetching images is still a pain in the code. The images are stored as a javascript object in the self.content variable...
It would be great to search only the selected topic such as [covid-19](https://news.google.com/topics/CAAqIggKIhxDQkFTRHdvSkwyMHZNREZqY0hsNUVnSmxiaWdBUAE?hl=en-US&gl=US&ceid=US%3Aen) and certain geographic regions like [Africa](https://news.google.com/topics/CAAqBwgKMJ25lwsw5uKuAw?hl=en-US&gl=US&ceid=US%3Aen) Topic Page: https://news.google.com/topics/CAAqIggKIhxDQkFTRHdvSkwyMHZNREZqY0hsNUVnSmxiaWdBUAE?hl=en-US&gl=US&ceid=US%3Aen Geographic Boundary: https://news.google.com/topics/CAAqBwgKMJ25lwsw5uKuAw?hl=en-US&gl=US&ceid=US%3Aen
Get customized article feed if logged in
Hi. How can I to remove quotation from input word of GoogleNews.get_news(word)? or pass the word without of quotation ? because when I search with and without quotation ; I...
Good afertnoon. Recently I found this tool, and it's amazing! I was wondering, how much the query could be customized, in [this](https://developers.google.com/custom-search/docs/xml_results#wsSpecialQueryTerms) post I found how can you do advanced...
That's all I can say? Regardless of what I set the date range to, it just shows the most recent, ignoring the date range. I've tried using set_time_range and also...
It looks google now only provide their intermediate URL that redirects to real news site URL: 'news.google.com/articles/CBMiU2h0dHBzOi8vd3d3LnRoZXZlcmdlLmNvbS8yMDI0LzIvMTQvMjQwNzI3OTIvYXBwbGUtdmlzaW9uLXByby1lYXJseS1hZG9wdGVycy1yZXR1cm5z0gEA?hl=en-US&gl=US&ceid=US%3Aen' Tried to get redirected URL with requests, but it seems Google use javascript...