github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

kurtmckee / listparser

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (13)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (13)
    • v0.13
    • v0.12
    • v0.11
    • v0.10
    • v0.9
    • v0.8
    • v0.7
    • v0.6
    • v0.5
    • v0.4
    • v0.3
    • v0.2
    • v0.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

listparser is a Python library that parses subscription lists (also called reading lists) and returns all of the feeds and subscription lists that it finds. It supports OPML, RDF+FOAF, and the iGoogle exported settings format. — Read more

  cancel

http://freshmeat.net/projects/listparser

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

version 0.13 
kurtmckee (author)
Sun Jan 31 13:19:51 -0800 2010
commit  b13042cf55ad9b393407847c94f0b950b78ff257
tree    ddc1c6d5aa317661833754cab500a76a4aa7bef5
parent  afe4bef4ae5b83668a2c8d9a1cee35ddbfc77ed7
listparser /
name age
history
message
file .gitignore Loading commit data...
file COPYING
file COPYING.LESSER
file MANIFEST.in
file NEWS
file README
directory docs/
file listparser.py
file lptest.py
file project.opml
file setup.py
directory tests/
README
listparser.py - Parse subscription lists into a consistent format.
Copyright (C) 2009-2010 Kurt McKee <contactme@kurtmckee.org>

listparser is a Python library that parses subscription lists (also
called reading lists) and returns all of the feeds, subscription lists,
and "opportunity" URLs that it finds. It supports OPML, RDF+FOAF, and
the iGoogle exported settings format.


Usage
=====

>>> import listparser
>>> result = listparser.parse( \
... 'http://github.com/kurtmckee/listparser/raw/master/project.opml')

A dictionary will be returned with several keys:
`meta`: a dictionary of information about the subscription list
`feeds`: a list of feeds
`lists`: a list of subscription lists
`version`: a file format identifier
`bozo`: 1 if there is a problem with the list, 0 otherwise
`bozo_exception`: (if `bozo` is 1) a description of the problem

Continuing the example:

>>> result.meta.title
u'listparser project feeds'
>>> len(result.feeds)
3
>>> result.feeds[0].keys()
['url', 'title']

More extensive documentation is available in the docs/ directory,
or online at <http://packages.python.org/listparser/>.


Bugs
====

There are going to be bugs. The best way to handle them will be to
isolate the simplest possible document that susses out the bug, add
that document as a test case, and then find and fix the problem.

...you can also just report the bug and leave it to someone else
to fix the problem, but that won't be as much fun for you!

Bugs can be reported at <http://github.com/kurtmckee/listparser/issues>.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server