local RSS reader in python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
_doc/sphinxdoc/source
_unittests
src
.gitattributes
.gitignore
.landscape.yml
.local.jenkins.lin.yml
.local.jenkins.win.yml
.travis.yml
HISTORY.rst
LICENSE.txt
README.rst
appveyor.yml
build_script.bat
requirements.txt
setup.py

README.rst

README

Build status Build Status Windows https://circleci.com/gh/sdpython/pyrsslocal/tree/master.svg?style=svg GitHub Issues MIT License Requirements Status https://codecov.io/github/sdpython/pyrsslocal/coverage.svg?branch=master

Links:

What is it?

This extension proposes a way to download new posts from blogs and to navigate through them with a couple of HTML pages managed by a local python server using a SQLite database:

from pyrsslocal import rss_update_run_server
fLOG (OutputPrint = True)
xml_blogs = "subscriptions.xml"
dbfile = "rss_posts.db3"
rss_update_run_server(dbfile, xml_blogs)

The previous example takes a dump of blogs url coming from the former Google Reader (see below), downloads RSS streams, loads everything into a database (SQLlite format), and opens a local web application to read them, mark them, or search their titles. The XML file which describes the blogs looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
    <body>

        <!--
        <outline text=""
            title=""
            type="rss"
            xmlUrl=""
            htmlUrl=""/>
            -->

        <outline text="XD blog"
                 title="XD blog"
                 type="rss"
                 xmlUrl="http://www.xavierdupre.fr/blog/xdbrss.xml"
                 htmlUrl="http://www.xavierdupre.fr/blog/xd_blog.html" />

    </body>
</opml>
.. only:: html

    .. image:: https://github.com/sdpython/pyrsslocal/blob/master/_doc/sphinxdoc/source/page1.png

.. only:: latex

    .. image:: page1.png