trumpline
v0.1.2
Published
a news feed cli of trump headlines
Downloads
6
Readme
Trumpline
Overview
Ever feel down in the dumps after tirelessly hacking away at a bug that just won't fix?
Well guess what, its time to revitalize your spirit! Time to realize that you aren't the dumbest person on earth.
What's the best way to do that? Read random Donald Trump headlines from CNN, of course...
So next time, before you tear your hair off, have a laugh at someone who only has a wig to tear off:
$ trumpline
$ Trump to NYT on Heidi Cruz retweet: 'Yeah, it was a mistake'
$ http://rss.cnn.com/c/35492/f/676957/s/4eae2dfe/sc/7/l/0L0Scnn0N0C20A160C0A40C0A20Cpolitics0Cdonald0Etrump0Eheidi0Ecruz0Etweet0Cindex0Bhtml0Deref0Frss0Ipolitics/story01.htm
$ trumpline
$ Trump on Trump: How to get revenge
$ http://rss.cnn.com/c/35492/f/676957/s/4ea73f88/sc/7/l/0L0Scnn0N0C20A160C0A40C0A10Cpolitics0Chow0Edonald0Etrump0Esees0Ehimself0Cindex0Bhtml0Deref0Frss0Ipolitics/story01.htm
Have fun!
Build
Real easy. Just uses a package called feed-read to grab recent CNN headlines from their Politics section. Then filters our all articles without "Trump" in the headline. Then it maps only the title and link of each article to a new array, and logs one of them out using a random number.
To do:
- Color/highlight output (using Chalk?)
- Pull stories from other new feeds than CNN
- Automatically start server and launch local website with HTML contents of article from CNN RSS feed?