Closed fabolandry closed 4 years ago
Code?
from GoogleNews import GoogleNews googlenews = GoogleNews() googlenews.search('APPL') Test = googlenews.gettext() print(Test)
I am also getting []
. I know my contribution to this project (def get_news(self, deamplify=False)
) broke a couple days ago. It looks like Google has once again changed the format to discourage scraping. This will need to be fixed and is a great opportunity for someone to contribute! ;-)
Same here no results even for Trump. @fabolandry @mjlabe @HurinHu you guys have any update ?
No update here. I've given up on using my contribution because Google breaks it every month.
@mjlabe Pity do you recommend newapi ?
@mjlabe Pity do you recommend newapi ?
I'm sure if there is an issue, @HurinHu will fix it, but I thought he pushed an update a few days ago. Have you tried updating? If it's not fixed, take a look at the html you are getting back and compare it to what the project is trying to parse. Should be a quick fix and your contribution would be appreciated. You're going to have this issue with any library that scrapes Google.
The API has been working for me the last few days. Using the following to test;
from GoogleNews import GoogleNews
googlenews = GoogleNews()
googlenews.search('tesla')
if googlenews.result() == []:
print("failed")
else:
print("passed")
print(googlenews.get__links())
There seems to be some issue of not returning results after heavy use. Documented in; https://github.com/HurinHu/GoogleNews/issues/22
I get an empty list and I checked my network. Something is up