Simple News app built in Python using Beautiful-soup web scraping.
How to use?
Download GoogleNews.py file and add into your project.
How to get user agent?
Search my user agent into your chrome.
E X A M P L E
from GoogleNews import GoogleNews
news = GoogleNews("your user agent")
M E T H O D S
getTopStories( )
return top stories headlines from Google News.
news.getTopStories()
getForYou( )
return headlines recommended based on your interests.
news.getForYou()
getCoronaNews( )
return headlines of corona news.
news.getCoronaNews()
getCountryNews( )
return headlines of your country.
news.getCountryNews()
getWorldNews( )
return headlines of world.
news.getWorldNews()
getTechnologyNews( )
return headlines of technology.
news.getTechnologyNews()
getEntertainmentNews( )
return headlines of entertainment.
news.getEntertainmentNews()
getSportsNews( )
return headlines of sports.
news.getSportsNews()
getScienceNews( )
return headlines of science.
news.getScienceNews()
getHealthNews( )
return headlines of health.
news.getHealthNews()