{"id":24101389,"url":"https://github.com/p7e4/rssfeed","last_synced_at":"2026-02-16T04:03:29.555Z","repository":{"id":242305189,"uuid":"809214774","full_name":"p7e4/rssfeed","owner":"p7e4","description":"A simple rss/atom/opml parser","archived":false,"fork":false,"pushed_at":"2025-10-06T04:38:58.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T05:40:45.719Z","etag":null,"topics":["feed","rss","rss-feed","rss-feed-parser","rss-parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p7e4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-02T03:28:22.000Z","updated_at":"2025-10-06T04:37:52.000Z","dependencies_parsed_at":"2024-06-02T04:39:27.985Z","dependency_job_id":"451d71e1-9cf5-47ac-b55f-0399ba826cb4","html_url":"https://github.com/p7e4/rssfeed","commit_stats":null,"previous_names":["p7e4/rssfeed","p7e4/rssparse"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/p7e4/rssfeed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Frssfeed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Frssfeed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Frssfeed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Frssfeed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p7e4","download_url":"https://codeload.github.com/p7e4/rssfeed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Frssfeed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29499810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T03:57:51.541Z","status":"ssl_error","status_checked_at":"2026-02-16T03:55:59.854Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feed","rss","rss-feed","rss-feed-parser","rss-parser"],"created_at":"2025-01-10T16:55:27.243Z","updated_at":"2026-02-16T04:03:29.550Z","avatar_url":"https://github.com/p7e4.png","language":"Python","readme":"# rssfeed\n\nA simple rss/atom/opml parser\n\n## Installation\n\n`pip install rssfeed`\n\n\n## Get Started\n\n### rss parse\n\n``` python\nimport requests\nimport rssfeed\n\ntext = requests.get(\"https://lobste.rs/rss\").text\nrssfeed.parse(text)\n```\n\n``` json\n{\n    \"name\": \"Lobsters\",\n    \"lastupdate\": 1739824193,\n    \"items\": [\n        {\n            \"title\": \"Why I'm Writing a Scheme Implementation in 2025 (The Answer is Async Rust)\",\n            \"author\": \"maplant.com by mplant\",\n            \"timestamp\": 1739824193,\n            \"url\": \"https://maplant.com/2025-02-17-Why-I'm-Writing-a-Scheme-Implementation-in-2025-(The-Answer-is-Async-Rust).html\",\n            \"content\": \"\u003cp\u003e\u003ca href=\\\"https://lobste.rs/s/zm1g8r/why_i_m_writing_scheme_implementation\\\"\u003eComments\u003c/a\u003e\u003c/p\u003e\"\n        },\n        {\n            \"title\": \"14 years of systemd\",\n            \"author\": \"lwn.net via calvin\",\n            \"timestamp\": 1739814564,\n            \"url\": \"https://lwn.net/SubscriberLink/1008721/7c31808d76480012/\",\n            \"content\": \"\u003cp\u003e\u003ca href=\\\"https://lobste.rs/s/c6rk0l/14_years_systemd\\\"\u003eComments\u003c/a\u003e\u003c/p\u003e\"\n        },\n        {\n            \"title\": \"Making the Web More Readable With Stylus\",\n            \"author\": \"wezm.net by wezm\",\n            \"timestamp\": 1739757928,\n            \"url\": \"https://www.wezm.net/v2/posts/2025/stylus/\",\n            \"content\": \"\u003cp\u003e\u003ca href=\\\"https://lobste.rs/s/sag0p3/making_web_more_readable_with_stylus\\\"\u003eComments\u003c/a\u003e\u003c/p\u003e\"\n        }\n    ]\n}\n```\n\n\u003e rssfeed **does not** escape HTML tags, which means you had to sanitization content otherwise it may lead to [Cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks, a recommended choice is [nh3](https://github.com/messense/nh3).\n\n\n### opml parse\n\n``` python\nimport rssfeed\nopml = \"\"\"\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003copml version=\"1.0\"\u003e\n  \u003chead\u003e\n    \u003ctitle\u003edemo feeds\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003coutline text=\"news\"\u003e\n      \u003coutline text=\"奇客Solidot\" xmlUrl=\"https://www.solidot.org/index.rss\" type=\"rss\" /\u003e\n      \u003coutline text=\"news-submenu\"\u003e\n        \u003coutline text=\"Lobsters\" xmlUrl=\"https://lobste.rs/rss\" type=\"rss\" /\u003e\n      \u003c/outline\u003e\n    \u003c/outline\u003e\n    \u003coutline text=\"阮一峰的网络日志\" xmlUrl=\"https://feeds.feedburner.com/ruanyifeng\" type=\"rss\" /\u003e\n  \u003c/body\u003e\n\u003c/opml\u003e\n\"\"\"\nrssfeed.opmlParse(opml)\n````\n\n``` json\n{\n    \"default\": [\n        {\n            \"name\": \"阮一峰的网络日志\",\n            \"url\": \"https://feeds.feedburner.com/ruanyifeng\"\n        }\n    ],\n    \"news\": [\n        {\n            \"name\": \"奇客Solidot\",\n            \"url\": \"https://www.solidot.org/index.rss\"\n        },\n        {\n            \"name\": \"Lobsters\",\n            \"url\": \"https://lobste.rs/rss\"\n        }\n    ]\n}\n```\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp7e4%2Frssfeed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp7e4%2Frssfeed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp7e4%2Frssfeed/lists"}