Skip to main content

A simple rss/atom feed parser

Project description

rssfeed

A simple rss/atom feed parser

Installation

pip install rssfeed

Get Started

import requests
import rssfeed

feed = rssfeed.parse(requests.get("https://www.solidot.org/index.rss").text)
print(feed)
{
  "name": "奇客Solidot–传递最新科技情报",
  "lastupdate": 1717423475,
  "items": [
    {
      "title": "中国科学家使用细胞疗法治愈一名患者的糖尿病",
      "author": "",
      "timestamp": 1717410594,
      "url": "https://www.solidot.org/story?sid=78338",
      "content": "《南华早报》报道,中国科学家利用细胞疗法成功治愈了一名患者的糖尿病。研究报告发表在《Cell Discovery》期刊 ..."
    },
    {
      "title": "Steam 平台 Linux 玩家四分之三使用 AMD CPU",
      "author": "",
      "timestamp": 1717404736,
      "url": "https://www.solidot.org/story?sid=78337",
      "content": "根据 Valve 公布的 Steam 硬件和软件调查,Linux 份额在过去的五月增长了 0.42% 至 2.32%,macOS 增至 1.47% ..."
    },
    {
      "title": "Hugging Face 称黑客窃取了 Spaces 平台的身份验证令牌",
      "author": "",
      "timestamp": 1717400574,
      "url": "https://www.solidot.org/story?sid=78336",
      "content": "Hugging Face 官方博客披露黑客窃取了其 Spaces 平台的身份验证令牌。Spaces 是社区用户创建和递交 AI 应用的库 ..."
    }
    ...
  ]
}

Warning

rssfeed does not escape any HTML tags, which mean if you does not check the content and display it somewhere html can be rendered, it may lead to Cross-site scripting attacks.

Changelog

Changelog.md

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

rssfeed-0.4.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rssfeed-0.4.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file rssfeed-0.4.0.tar.gz.

File metadata

  • Download URL: rssfeed-0.4.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for rssfeed-0.4.0.tar.gz
Algorithm Hash digest
SHA256 85535d302b46917c74b96d1b1bc9a7601231aa4e9447799c5d71beafa63ab468
MD5 1c7db992b702866a5b4f7f9648860376
BLAKE2b-256 b95056695367eb0741c078378020a07bf910a785d7d00df075e531a4dd29a122

See more details on using hashes here.

File details

Details for the file rssfeed-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: rssfeed-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for rssfeed-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64b1d378d46bdf1ba09a23aac6499576e9e50d0d019a38ce48af6cb497bb7319
MD5 ab2dad84d8d7447daed425e30fd326cc
BLAKE2b-256 4984a386e3c45e2ffa570df39eaa201198e3162c7e292370cbd8782d4289311e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page