Python Library for getting/fetching news from google news.
pip install pygnewslib
pip install --upgrade pygnewslib
from pygnewslib import GoogleNews
google_news = GoogleNews()
json_resp = google_news.fetch_news('Pakistan')
results = []
for ar in json_resp:
results.append(ar["title"])
for i in range(len(results)):
# printing all trending news
print(i + 1, results[i])