Read random news on the internet

links $( a=( $( lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort | uniq ) ) ; amax=${#a[@]} ; n=$(( `date '+%s'` % $amax )) ; echo ${a[n]} )
Access a random news web page on the internet. The Links browser can of course be replaced by Firefox or any modern graphical web browser.

1 Alternatives + Submit Alt

What Others Think

I wonder if there is a way to get text only or json from any news site?
vetash · 255 weeks and 1 day ago
@vetash Maybe lynx -dump http://your_news_site.com Or maye through rss, like https://news.google.com/news?output=rss
pascalv · 255 weeks and 1 day ago
@vetash Maybe you'll like this one, with news rss: http://www.commandlinefu.com/commands/view/8274/quick-and-dirty-rss
pascalv · 255 weeks ago
took me time to read the forum but its actually great. People should know about this more. dentalimplantssanjoseca.com
Killersmile · 11 weeks and 1 day ago
The code related to Access a random news web page on the internet. The Links browser can of course be replaced by Firefox or any modern graphical web browser. I will use to to acess Kontaktlinsen in future.
KayGasaway · 10 weeks and 6 days ago
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up Onewheel
KayGasaway · 10 weeks and 3 days ago
Your post has those facts which are not accessible from anywhere else. It’s my humble request to u please keep writing such remarkable articles ????
KayGasaway · 9 weeks and 4 days ago
I am incapable of reading articles online very often, but I’m happy I did today. It is very well written, and your points are well-expressed. I request you warmly, please, don’t ever stop writing. ???//?????.net
KayGasaway · 9 weeks and 3 days ago
Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome! ??? ?????
KayGasaway · 9 weeks and 2 days ago
Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks PCB solder mask
KayGasaway · 7 weeks and 1 day ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work What is an HOA website builder
KayGasaway · 6 weeks and 2 days ago
You've completed in excellent work. t suggest to my frtends ind personilly wtll certitnly dtgtt. t'm conftdent they'll be gitned from thts webstte. the CEO of Beachbody
KayGasaway · 5 weeks and 6 days ago
Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic. who is Carl Daikeler
KayGasaway · 5 weeks and 4 days ago
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison the Founder of Beachbody
KayGasaway · 5 weeks and 4 days ago
I'm constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! reddit Video downloader
KayGasaway · 5 weeks and 3 days ago
Thankyou for sharing the data which is beneficial for me and others likewise to see. Carl Daikeler linkedin
KayGasaway · 5 weeks and 2 days ago
Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us. ????
KayGasaway · 5 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: