Skip to main content

Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds

Project description

feedparser - Parse Atom and RSS feeds in Python.

Copyright 2010-2015 Kurt McKee <contactme@kurtmckee.org>
Copyright 2002-2008 Mark Pilgrim

feedparser is open source. See the LICENSE file for more information.

Installation

Feedparser can be installed using distutils or setuptools by running:

$ python setup.py install

If you’re using Python 3, feedparser will automatically be updated by the 2to3 tool; installation should be seamless across Python 2 and Python 3.

There’s one caveat, however: sgmllib.py was deprecated in Python 2.6 and is no longer included in the Python 3 standard library. Because feedparser currently relies on sgmllib.py to handle illformed feeds (among other things), it’s a useful library to have installed.

If your feedparser download included a copy of sgmllib.py, it’s probably called sgmllib3.py, and you can simply rename the file to sgmllib.py. It will not be automatically installed using the command above, so you will have to manually copy it to somewhere in your Python path.

If a copy of sgmllib.py was not included in your feedparser download, you can grab a copy from the Python 2 standard library (preferably from the Python 2.7 series) and run the 2to3 tool on it:

$ 2to3 -w sgmllib.py

If you copied sgmllib.py from a Python 2.6 or 2.7 installation you’ll additionally need to edit the resulting file to remove the warnpy3k lines at the top of the file. There should be four lines at the top of the file that you can delete.

Because sgmllib.py is a part of the Python codebase, it’s licensed under the Python Software Foundation License. You can find a copy of that license at python.org:

http://docs.python.org/license.html

Documentation

The feedparser documentation is available on the web at:

https://pythonhosted.org/feedparser/

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:

http://sphinx.pocoo.org/

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

$ sphinx-build -b html docs/ fpdocs

This will produce HTML documentation in the fpdocs/ directory.

Testing

Feedparser has an extensive test suite that has been growing for a decade. If you’d like to run the tests yourself, you can run the following command:

$ python feedparsertest.py

This will spawn an HTTP server that will listen on port 8097. The tests will fail if that port is in use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

feedparser-5.2.1.zip (1.2 MB view details)

Uploaded Source

feedparser-5.2.1.tar.gz (253.0 kB view details)

Uploaded Source

feedparser-5.2.1.tar.bz2 (192.3 kB view details)

Uploaded Source

File details

Details for the file feedparser-5.2.1.zip.

File metadata

  • Download URL: feedparser-5.2.1.zip
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for feedparser-5.2.1.zip
Algorithm Hash digest
SHA256 cd2485472e41471632ed3029d44033ee420ad0b57111db95c240c9160a85831c
MD5 761df908e1f1b68eab53bbcb73d57352
BLAKE2b-256 5d20c6ec54fc79fb944f2058a5fef149b8a0d67993db5e3ba7ea58ce931e365e

See more details on using hashes here.

File details

Details for the file feedparser-5.2.1.tar.gz.

File metadata

  • Download URL: feedparser-5.2.1.tar.gz
  • Upload date:
  • Size: 253.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for feedparser-5.2.1.tar.gz
Algorithm Hash digest
SHA256 bd030652c2d08532c034c27fcd7c85868e7fa3cb2b17f230a44a6bbc92519bf9
MD5 d552f7a2a55e8e33b2a3fe1082505b42
BLAKE2b-256 caf491a056f11751701c24f86c692d92fee290b0ba3f99f657cdeb85ad3da402

See more details on using hashes here.

File details

Details for the file feedparser-5.2.1.tar.bz2.

File metadata

  • Download URL: feedparser-5.2.1.tar.bz2
  • Upload date:
  • Size: 192.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for feedparser-5.2.1.tar.bz2
Algorithm Hash digest
SHA256 ce875495c90ebd74b179855449040003a1beb40cd13d5f037a0654251e260b02
MD5 ee8bd99535a4261b8e26976984dd6b26
BLAKE2b-256 91d87d37fec71ff7c9dbcdd80d2b48bcdd86d6af502156fc93846fb0102cb2c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page