A minimal API like Python Wrapper for http://Echojs.com which outputs News Streams in the form of JSON Object
##How To Use it? You can always start like sample.py
#Example Using EchoJS-API-minimal
import EchoJS
feed = EchoJS.echojs()
feed.get_topnews()
#####Sample JSON Dump File dump file
##Functions
#get_topnews() get_topnews() gives you the trending top news running on http://Echojs.com #####Usage
import EchoJS
feed = EchoJS.echojs()
feed.get_topnews()
#####SampleOutput
{
{"Link": "http://url-to-the-news"},
{"Title": "Something Random Out of Trending News SET"}
},
.
.
.
#get_latest(count) get_latest(count) gives you the latest news running on http://Echojs.com ###count - (positive int)
- setting count 0 will give you latest feed of page 1
- setting count 1 will give you latest feed of page 1 & page 2
- setting count 2 will give you latest feed of page 1,page 2 & page 3 and so on.....
- Each Page Give you upto 30 feeds
#####Usage
import EchoJS
feed = EchoJS.echojs()
feed.get_latest(0) #only want 30 feeds set cout to 0 or you can set count 1,2,3,4....... for more
#####SampleOutput
{
{"Link": "http://url-to-any-latest-news"},
{"Title": "Something Random Out of Set of Latest News SET"}
}
.
.
.
####Fork it !