Socket
Socket
Sign inDemoInstall

kolak

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kolak

universal rss parser


Maintainers
1

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)
"""

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc