About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 45
  • Price: Free |
  • Operating system: Linux
  • Publisher: Maciej Konieczny
See full specifications

linux default iconinterssection Publisher's description

Python lib that lets you treat Atom and RSS feeds like sets.

Python lib that lets you treat Atom and RSS feeds like sets.

interssection provides Feed class that reads feeds from string (either URL or XML) and supports all frozenset methods apart from copy() and __contains__(elem). You can change id and title of created feed and print/save it as Atom 1.0 XML (at the moment it's the only supported output format).
In Ideal World

from interssection import Feed

python = Feed('???/tags/python')
django = Feed('???/tags/django')
job = Feed('???/tags/job')

feed = (python | django) & job
feed.title = 'Python and Django jobs'
print feed

In Real World

#!/usr/bin/env python
# encoding: utf-8
Create Atom 1.0 feed containing Stack Overflow questions
tagged with "Python" but not tagged with "Django" and save
it to ~/Sites/nondjango.xml so that it can be accessed at
http://localhost/nondjango.xml on your shiny Mac.

import codecs
from os.path import expanduser

from interssection import Feed

def _main():
# get source feeds
python = Feed('http://stackoverflow.com/feeds/tag/python')
django = Feed('http://stackoverflow.com/feeds/tag/django')

# create smart feed
feed = python - django
feed.title = 'Non-Django Python Questions'

# set unique identifier (if you're going to run this script more than
# once, you may want the resultant feed to have the same id; you can
# generate one with `import uuid; print uuid.uuid4().urn`)
feed.id = 'urn:uuid:7cb27103-10fa-49ed-ad91-83583bb3b16a'

# save xml
xml = unicode(feed)
filepath = expanduser('~/Sites/nondjango.xml')
with codecs.open(filepath, encoding='utf-8', mode='w') as f:

if __name__ == '__main__':


[[ ! -x "`which pip`" ]] && easy_install pip
pip install interssection

Python 2.7 and either pip or easy_install are required.

System Requirements:

No special requirements.
Program Release Status:
Program Install Support: Install and Uninstall

Is interssection your software?

Manage your software

Most Popular

linux default icon GDB 7.4
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it... Read more
linux default icon Coral 0.9.1
Coral is a tool and a development platform to create and transform models and modeling languages.
linux default icon Forum Paid Plus Script 6.1
Forum Paid Pay Per Post Exchange is targeted at forum owners who wish to...
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
linux default icon Get Paid Plus Script 6.1
Get Paid Plus Script

Related Category

» Other (877)
» Tools & Editors (359)
» Web Development (146)