feedparser

Parse feeds in Python

OTHER License

Downloads
4.2M
Stars
1.8K
Committers
53

.. This file is part of feedparser. Copyright 2010-2024 Kurt McKee [email protected] Copyright 2002-2008 Mark Pilgrim Released under the BSD 2-clause license.

feedparser ##########

Parse Atom and RSS feeds in Python.


Installation

feedparser can be installed by running pip:

.. code-block:: console

$ pip install feedparser

Documentation

The feedparser documentation is available on the web at:

https://feedparser.readthedocs.io/en/latest/

It is also included in its source format, ReST, in the docs/ directory. To build the documentation you'll need the Sphinx package, which is available at:

https://www.sphinx-doc.org/

You can then build HTML pages using a command similar to:

.. code-block:: console

$ sphinx-build -b html docs/ fpdocs

This will produce HTML documentation in the fpdocs/ directory.

Testing

Feedparser has an extensive test suite, powered by Tox. To run it, type this:

.. code-block:: console

$ python -m venv venv
$ source venv/bin/activate  # or "venv\bin\activate.ps1" on Windows
(venv) $ python -m pip install --upgrade pip
(venv) $ python -m pip install tox
(venv) $ tox
Package Rankings
Top 3.79% on Alpine-v3.11
Top 8.17% on Proxy.golang.org
Top 5.22% on Alpine-v3.9
Top 7.18% on Alpine-v3.7
Top 6.83% on Alpine-v3.5
Top 7.15% on Alpine-v3.4
Top 4.42% on Alpine-v3.8
Top 5.35% on Alpine-v3.10
Top 3.5% on Alpine-v3.13
Top 5.49% on Alpine-v3.6
Top 9.44% on Alpine-v3.17
Top 2.74% on Alpine-v3.18
Top 0.81% on Pypi.org
Top 3.98% on Alpine-edge
Top 27.79% on Anaconda.org
Top 4.76% on Alpine-v3.15
Top 3.83% on Alpine-v3.14
Top 7.08% on Alpine-v3.12
Top 7.38% on Alpine-v3.3
Top 8.96% on Alpine-v3.16