Skip to content

nyirog/feedlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feedlink

rss/atom feed classifier written in python 2.7

Usage

You can try feedlink before install if the PYTHONPATH is extended with the lib directory

$ export PYTHONPATH=./lib:$PYTHONPATH
$ cat test/data/feeds.html
<a href="http://feeds.feedburner.com/codinghorror"/>
<br/>
<link href="http://www.hwsw.hu/xml/latest_news_rss.xml">
<link href="http://comment.blog.hu/atom" type="application/atom+xml">

$ ./bin/classfeedlinks test/data/feeds.html
{
    "atom": [
            "http://comment.blog.hu/atom"
    ],
    "rss": [
            "http://feeds.feedburner.com/codinghorror",
            "http://www.hwsw.hu/xml/latest_news_rss.xml"
    ]
}

classfeedlinks can be used in pipeline process

$ cat test/data/feeds.html | ./bin/classfeedlinks > feeds.json
$ ./bin/classfeedlinks < test/data/feeds.html > feeds.json

or with named files

$ ./bin/classfeedlinks --json feeds.json test/data/feeds.html

Install

feedlink depends on the lxmli and jsonschema third party python packages.

sudo apt-get install python-lxml
sudo apt-get install python-jsonschema
sudo python setup.py install

Test

Run all the test

python -m unittest discover -s test -p test_*.py

feedlink is tested under Ubuntu 14.04 with python 2.7.6.

About

rss/atom feed classifier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages