Name | rssfeed JSON |
Version |
0.2
JSON |
| download |
home_page | None |
Summary | A simple rss/atom feed parser |
upload_time | 2024-06-24 12:38:18 |
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/86/7f/fba55c5d0705f9fecbaa448bc46dcbd1737cd845115c41939fac2946cc43/rssfeed-0.2.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.2",
"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": "d0af8b5a97ff879c373f91364e4741440cf07c9c6567bde99ef4f01cba118560",
"md5": "59c03ac90e95a62d582795667903e681",
"sha256": "ccd7cd08435e73d75f44ae557a1618e245d0b6552cefd80ea66c2c63307ff919"
},
"downloads": -1,
"filename": "rssfeed-0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "59c03ac90e95a62d582795667903e681",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 15465,
"upload_time": "2024-06-24T12:38:16",
"upload_time_iso_8601": "2024-06-24T12:38:16.344275Z",
"url": "https://files.pythonhosted.org/packages/d0/af/8b5a97ff879c373f91364e4741440cf07c9c6567bde99ef4f01cba118560/rssfeed-0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "867ffba55c5d0705f9fecbaa448bc46dcbd1737cd845115c41939fac2946cc43",
"md5": "4cc2265c84b93558f629f4009f70cc07",
"sha256": "0474fcce1b2609e75f820e5188c0fdac361b9347da719eb223341d0f182ffb94"
},
"downloads": -1,
"filename": "rssfeed-0.2.tar.gz",
"has_sig": false,
"md5_digest": "4cc2265c84b93558f629f4009f70cc07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 15121,
"upload_time": "2024-06-24T12:38:18",
"upload_time_iso_8601": "2024-06-24T12:38:18.039294Z",
"url": "https://files.pythonhosted.org/packages/86/7f/fba55c5d0705f9fecbaa448bc46dcbd1737cd845115c41939fac2946cc43/rssfeed-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-24 12:38:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "p7e4",
"github_project": "rssfeed",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "rssfeed"
}