Created
June 5, 2014 21:25
-
-
Save jrecursive/00b4bad31db1937ad73d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create circuit rss; | |
| use rss; | |
| create channel articles; | |
| create device rss-channel as channeler {"channel": "articles"}; | |
| create device cnn-top-stories as rss-poller {"url": "http://rss.cnn.com/rss/cnn_topstories.rss"}; | |
| create wire rss-to-chan-1 from cnn-top-stories.entries to rss-channel.data; | |
| create device cnn-world as rss-poller {"url": "http://rss.cnn.com/rss/cnn_world.rss"}; | |
| create wire rss-to-chan-2 from cnn-world.entries to rss-channel.data; | |
| create device cnn-us as rss-poller {"url": "http://rss.cnn.com/rss/cnn_us.rss"}; | |
| create wire rss-to-chan-3 from cnn-us.entries to rss-channel.data; | |
| create device cnn-latest as rss-poller {"url": "http://rss.cnn.com/rss/cnn_latest.rss"}; | |
| create wire rss-to-chan-4 from cnn-latest.entries to rss-channel.data; | |
| create device cnn-popular as rss-poller {"url": "http://rss.cnn.com/rss/cnn_mostpopular.rss"}; | |
| create wire rss-to-chan-5 from cnn-popular.entries to rss-channel.data; | |
| create device fox-news as rss-poller {"url": "http://feeds.foxnews.com/foxnews/latest"}; | |
| create wire rss-to-chan-6 from fox-news.entries to rss-channel.data; | |
| create device drudge-report as rss-poller {"url": "http://www.drudgereportfeed.com/rss.xml"}; | |
| create wire rss-to-chan-7 from drudge-report.entries to rss-channel.data; | |
| create device al-jazeera as rss-poller {"url": "http://america.aljazeera.com/content/ajam/articles.rss"}; | |
| create wire rss-to-chan-8 from al-jazeera.entries to rss-channel.data; | |
| create channel clusters; | |
| create device cluster-channel as channeler {"channel":"clusters"}; | |
| create device headline-clusters as carrot2-cluster {"title-field": "title", "content-field": "description", "algorithm": "lingo", "window-size": 100}; | |
| create wire cluster-in-wire from rss-channel.data to headline-clusters.input; | |
| create wire cluster-out-wire from headline-clusters.clusters to cluster-channel.data; | |
| create device cluster-pulse as pulse {"hz": 0.1}; | |
| create wire cluster-pulse-wire from cluster-pulse.pulse to headline-clusters.pulse; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment