Get Top 10 Google News Headlines With Clickable Links
I modified this script from hemanth because his included url shortener (https://is.gd) banned my VPN service. The modification is the use of the tinyurl module and defaulting the news to U.S. headlines.
This is a python script that will install (with PIP) the required dependicies if not alreay installed. If your terminal supports mouse clicking then you can click the tinyurl link that will open your default browser to read more than just the newsflash headline.
You can edit the script (uncomment) to display other types of headlines and other countries other than U.S
Required Packages feedparser tinyurl colorama
Sample Output:
Mexico: Strong earthquake topples buildings, killing scores - BBC News : http://tinyurl.com/y7q3dv7o
Jitters and surprise in South Korea and Japan over Trump's speech to the UN - Washington Post : http://tinyurl.com/yccx5dod
Puerto Rico governor: Still time to get to shelters before Hurricane Maria - CNN : http://tinyurl.com/yboe3j44
Melania Trump in legal row with English-language school - BBC News : http://tinyurl.com/yaqzhan7
Zapad: What can we learn from Russia's latest military exercise? - BBC News : http://tinyurl.com/y8urbqsd
Erdogan questions why US has armed Syrian Kurdish 'terrorists,' disputes claims of ************ - PBS NewsHour : http://tinyurl.com/y9bz2y8u
Trump Using Campaign Funds to Pay Russia Defense Bills: Report - Newser : http://tinyurl.com/y7xcjtnl
WWI submarine wreck containing 23 bodies found in Belgian waters - New York Daily News : http://tinyurl.com/yaoruud9
Kenya's judges who nullified election face 'savage' threats - Washington Post : http://tinyurl.com/ybcdwpxz
Brazil's police confirms death of British kayaker in Amazon - New York Daily News : http://tinyurl.com/yckj3e83