universal rss parser
Project description
Universal RSS Parser.
extra features:
- work with any rss and atom feed format.
- smart cache
- multiple rss support
- parallel parser
- parse rss podcast.
Installation
pip install kolak
Usage Example
from kolak import Parser
url = ""
rss = Parser(url)
items = rss.parse()
print("title:", rss.title)
print("description:", rss.description)
print("permalink:", rss.permalink)
print("updated:", rss.updated)
print("author:", rss.author)
print("-"*10)
for item in items:
print("title:", item["title"])
print("date:", item["date"])
print("description:",item["description"])
print("link:",item["link"])
print("link_image", item["link_image"])
print("link_podcast:",item["link_podcast"])
print("-"*10) # line
multiple rss processing
url1 = ""
url2 = ""
rss1 = Parser(url1)
items1 = rss1.parse()
rss2 = Parser(url2)
items2 = rss2.parse()
items = items1+items2
also you can pass raw xml feed as url input in Parser()
.
parse option
rss.parse(limit=0, debug=False, parallel=False)
"""
limit: limitable items parse, 0 = nolimited
debug: activate debug mode. when no model is match, you will see what happened on kolak.log
parallel: use multiprocessing to parse items (experimental)
"""
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kolak-0.1.5.tar.gz
(5.0 kB
view details)
File details
Details for the file kolak-0.1.5.tar.gz
.
File metadata
- Download URL: kolak-0.1.5.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a0415ec0b28fffa37527cd3174fbf241809013288f0430e34c48485f48d508 |
|
MD5 | 1a857f23da60a5997ba545a71a61a3b9 |
|
BLAKE2b-256 | 19c0ad81eb6651d706d76582015394c9e18740935143430f33705021721845f2 |