123456789101112131415161718192021222324252627282930 |
- import feedparser
- calibre_url = "http://edwards.hjemme.lan:8080/opds"
- feed = feedparser.parse(calibre_url)
- """main.py: Experimental code using feedparser on OPDS feeds from calibre"""
- __author__ = "Steinar Bang"
- __copyright__ = "Steinar Bang, 2015"
- __credits__ = ["Steinar Bang"]
- __license__ = "GPL v3"
- print feed.keys()
- newest_url = feed.entries[0].links[0].href
- authors_url = feed.entries[2].links[0].href
- authors_feed = feedparser.parse(authors_url)
- print authors_feed
|