Closed former-economist closed 2 years ago
When search for a popular subject it returns an empty list.
from GoogleNews import GoogleNews googlenews = GoogleNews() googlenews.search("Raspberry Pi") results = googlenews.results() print(f"Number of results {len(results)}.") print(f"First result: {results}")
from GoogleNews import GoogleNews
googlenews = GoogleNews()
googlenews.search("Raspberry Pi")
results = googlenews.results()
print(f"Number of results {len(results)}.")
print(f"First result: {results}")
Giving the following output: Number of results 0. First result: []
Same issue since today. Search function is not working but get_news is working.
The issue is solved with latest version, please upgrade to v1.6.4
When search for a popular subject it returns an empty list.
from GoogleNews import GoogleNews
googlenews = GoogleNews()
googlenews.search("Raspberry Pi")
results = googlenews.results()
print(f"Number of results {len(results)}.")
print(f"First result: {results}")
Giving the following output: Number of results 0. First result: []