Name | rssfeed JSON |
Version |
0.3
JSON |
| download |
home_page | None |
Summary | A simple rss/atom feed parser |
upload_time | 2024-09-14 11:12:30 |
maintainer | None |
docs_url | None |
author | p7e4 |
requires_python | >=3.12 |
license | GPLv3 |
keywords |
rssfeed
rss
feed
atom
feedparser
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# rssfeed
A simple rss/atom feed parser
## Installation
`pip install rssfeed`
## Get Started
``` python
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](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks.
## Changelog
[Changelog.md](/Changelog.md)
Raw data
{
"_id": null,
"home_page": null,
"name": "rssfeed",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "rssfeed, rss, feed, atom, feedparser",
"author": "p7e4",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/ba/09/b688a6f335753d8466a785e44fc0aa5f12579daf62d70659bead092a3df2/rssfeed-0.3.tar.gz",
"platform": null,
"description": "# rssfeed\n\nA simple rss/atom feed parser\n\n## Installation\n\n`pip install rssfeed`\n\n## Get Started\n\n``` python\nimport requests\nimport rssfeed\n\nfeed = rssfeed.parse(requests.get(\"https://www.solidot.org/index.rss\").text)\nprint(feed)\n```\n```\n{\n \"name\": \"\u5947\u5ba2Solidot\u2013\u4f20\u9012\u6700\u65b0\u79d1\u6280\u60c5\u62a5\",\n \"lastupdate\": 1717423475,\n \"items\": [\n {\n \"title\": \"\u4e2d\u56fd\u79d1\u5b66\u5bb6\u4f7f\u7528\u7ec6\u80de\u7597\u6cd5\u6cbb\u6108\u4e00\u540d\u60a3\u8005\u7684\u7cd6\u5c3f\u75c5\",\n \"author\": \"\",\n \"timestamp\": 1717410594,\n \"url\": \"https://www.solidot.org/story?sid=78338\",\n \"content\": \"\u300a\u5357\u534e\u65e9\u62a5\u300b\u62a5\u9053\uff0c\u4e2d\u56fd\u79d1\u5b66\u5bb6\u5229\u7528\u7ec6\u80de\u7597\u6cd5\u6210\u529f\u6cbb\u6108\u4e86\u4e00\u540d\u60a3\u8005\u7684\u7cd6\u5c3f\u75c5\u3002\u7814\u7a76\u62a5\u544a\u53d1\u8868\u5728\u300aCell Discovery\u300b\u671f\u520a ...\"\n },\n {\n \"title\": \"Steam \u5e73\u53f0 Linux \u73a9\u5bb6\u56db\u5206\u4e4b\u4e09\u4f7f\u7528 AMD CPU\",\n \"author\": \"\",\n \"timestamp\": 1717404736,\n \"url\": \"https://www.solidot.org/story?sid=78337\",\n \"content\": \"\u6839\u636e Valve \u516c\u5e03\u7684 Steam \u786c\u4ef6\u548c\u8f6f\u4ef6\u8c03\u67e5\uff0cLinux \u4efd\u989d\u5728\u8fc7\u53bb\u7684\u4e94\u6708\u589e\u957f\u4e86 0.42% \u81f3 2.32%\uff0cmacOS \u589e\u81f3 1.47% ...\"\n },\n {\n \"title\": \"Hugging Face \u79f0\u9ed1\u5ba2\u7a83\u53d6\u4e86 Spaces \u5e73\u53f0\u7684\u8eab\u4efd\u9a8c\u8bc1\u4ee4\u724c\",\n \"author\": \"\",\n \"timestamp\": 1717400574,\n \"url\": \"https://www.solidot.org/story?sid=78336\",\n \"content\": \"Hugging Face \u5b98\u65b9\u535a\u5ba2\u62ab\u9732\u9ed1\u5ba2\u7a83\u53d6\u4e86\u5176 Spaces \u5e73\u53f0\u7684\u8eab\u4efd\u9a8c\u8bc1\u4ee4\u724c\u3002Spaces \u662f\u793e\u533a\u7528\u6237\u521b\u5efa\u548c\u9012\u4ea4 AI \u5e94\u7528\u7684\u5e93 ...\"\n }\n ...\n ]\n}\n```\n\n## Warning\n\nrssfeed **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](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks.\n\n## Changelog\n\n[Changelog.md](/Changelog.md)\n\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "A simple rss/atom feed parser",
"version": "0.3",
"project_urls": {
"Issues": "https://github.com/p7e4/rssfeed/issues",
"Repository": "https://github.com/p7e4/rssfeed"
},
"split_keywords": [
"rssfeed",
" rss",
" feed",
" atom",
" feedparser"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1be2f4a12a4dfb5577ee3768246543190a454b4938a05f62b55d1051088faaa0",
"md5": "24ea7e205507d1d6393481fe0c3cd778",
"sha256": "2e4a4f8ab955c594e175f08913549775fde1d5e10fcb04f2a1e4c297a64f4791"
},
"downloads": -1,
"filename": "rssfeed-0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24ea7e205507d1d6393481fe0c3cd778",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 15426,
"upload_time": "2024-09-14T11:12:28",
"upload_time_iso_8601": "2024-09-14T11:12:28.889139Z",
"url": "https://files.pythonhosted.org/packages/1b/e2/f4a12a4dfb5577ee3768246543190a454b4938a05f62b55d1051088faaa0/rssfeed-0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ba09b688a6f335753d8466a785e44fc0aa5f12579daf62d70659bead092a3df2",
"md5": "5394b5c8cd66e324a601e56eff37eed4",
"sha256": "82374980df2d20185b983ef792b0498c1c9fca356197d807edc30b467ee88bff"
},
"downloads": -1,
"filename": "rssfeed-0.3.tar.gz",
"has_sig": false,
"md5_digest": "5394b5c8cd66e324a601e56eff37eed4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 15078,
"upload_time": "2024-09-14T11:12:30",
"upload_time_iso_8601": "2024-09-14T11:12:30.145759Z",
"url": "https://files.pythonhosted.org/packages/ba/09/b688a6f335753d8466a785e44fc0aa5f12579daf62d70659bead092a3df2/rssfeed-0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-14 11:12:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "p7e4",
"github_project": "rssfeed",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "rssfeed"
}