[](https://shields.io/)
[](https://shields.io/)
[](https://pypi.org/project/easy-rss)
[](https://pypi.org/project/easy-rss)
# easy_rss
Simple Python package for processing data from RSS feeds
Can parse both `Atom` and `RSS` formats
### Usage
```python
from easy_rss import *
rss = EasyRSS("https://rss.nytimes.com/services/xml/rss/nyt/World.xml")
for item in rss.get_news():
print(f"\n{item}\n")
```
### Output
```
Item(title='Live Updates: Russia Unleashes New Strikes as Ukraine Prepares for Cabinet Shake-Up', link='https://www.nytimes.com/live/2024/09/04/world/ukraine-russia-missile-attacks', pubDate='Sep 04, 2024 01:30PM', description='Several ministers offered to resign as President Volodymyr Zelensky laid plans for a major reshuffle of Ukraine’s government. While rescuers searched the rubble of a deadly strike on a military academy in eastern Ukraine, another Russian attack killed seven in the west.')
Item(title='Poltava Strike Aftermath Drains Ukraine’s Seasoned Rescuers', link='https://www.nytimes.com/2024/09/04/world/europe/ukraine-poltava-strike-aftermath.html', pubDate='Sep 04, 2024 05:50AM', description='Repeated air-raid alerts have punctuated the search through the rubble in Poltava, in eastern Ukraine, after an attack that killed more than 50 people.')
Item(title='With New Taliban Manifesto, Afghan Women Fear the Worst', link='https://www.nytimes.com/2024/09/04/world/asia/women-taliban-prohibitions-afghanistan.html', pubDate='Sep 04, 2024 12:37PM', description='Three years into its rule, the movement has codified its harsh Islamic decrees into law that now includes a ban on women’s voices in public.')
Item(title='Cease-Fire Talks Present Tough Choices for Gazans Devastated by War', link='https://www.nytimes.com/2024/09/04/world/middleeast/gaza-war-cease-fire-israel.html', pubDate='Sep 04, 2024 05:04AM', description='Some say they will reluctantly stomach a postwar Israeli military presence in the territory if that allows them to go home. Others worry about another long-term occupation.')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/michaelMondoro/easy_rss",
"name": "easy-rss",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Michael Mondoro",
"author_email": "michaelmondoro@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a9/92/762062c09c15b7c55563c44472ff0f0130f45bd86c95dab9c4f800c981df/easy_rss-1.2.5.tar.gz",
"platform": null,
"description": "[](https://shields.io/)\n[](https://shields.io/)\n[](https://pypi.org/project/easy-rss)\n[](https://pypi.org/project/easy-rss)\n\n# easy_rss\nSimple Python package for processing data from RSS feeds\n\nCan parse both `Atom` and `RSS` formats\n\n### Usage\n```python\nfrom easy_rss import *\n\nrss = EasyRSS(\"https://rss.nytimes.com/services/xml/rss/nyt/World.xml\")\nfor item in rss.get_news():\n print(f\"\\n{item}\\n\")\n\n```\n\n### Output\n```\nItem(title='Live Updates: Russia Unleashes New Strikes as Ukraine Prepares for Cabinet Shake-Up', link='https://www.nytimes.com/live/2024/09/04/world/ukraine-russia-missile-attacks', pubDate='Sep 04, 2024 01:30PM', description='Several ministers offered to resign as President Volodymyr Zelensky laid plans for a major reshuffle of Ukraine\u2019s government. While rescuers searched the rubble of a deadly strike on a military academy in eastern Ukraine, another Russian attack killed seven in the west.')\n\n\nItem(title='Poltava Strike Aftermath Drains Ukraine\u2019s Seasoned Rescuers', link='https://www.nytimes.com/2024/09/04/world/europe/ukraine-poltava-strike-aftermath.html', pubDate='Sep 04, 2024 05:50AM', description='Repeated air-raid alerts have punctuated the search through the rubble in Poltava, in eastern Ukraine, after an attack that killed more than 50 people.')\n\n\nItem(title='With New Taliban Manifesto, Afghan Women Fear the Worst', link='https://www.nytimes.com/2024/09/04/world/asia/women-taliban-prohibitions-afghanistan.html', pubDate='Sep 04, 2024 12:37PM', description='Three years into its rule, the movement has codified its harsh Islamic decrees into law that now includes a ban on women\u2019s voices in public.')\n\n\nItem(title='Cease-Fire Talks Present Tough Choices for Gazans Devastated by War', link='https://www.nytimes.com/2024/09/04/world/middleeast/gaza-war-cease-fire-israel.html', pubDate='Sep 04, 2024 05:04AM', description='Some say they will reluctantly stomach a postwar Israeli military presence in the territory if that allows them to go home. Others worry about another long-term occupation.')\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple Python package for interacting with RSS feeds",
"version": "1.2.5",
"project_urls": {
"Homepage": "https://github.com/michaelMondoro/easy_rss"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ffc833d4d45959d50438771b3b6bdd3230dd5ecafcc4774a853ad48aa93dc701",
"md5": "a2a4c931d94fd49339e32e93d79a553e",
"sha256": "bd45692b6dafacdb504c1fa4f8e2ddf12e410d52c966bdf94053ab270c5d7382"
},
"downloads": -1,
"filename": "easy_rss-1.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a2a4c931d94fd49339e32e93d79a553e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4502,
"upload_time": "2024-09-05T18:39:33",
"upload_time_iso_8601": "2024-09-05T18:39:33.498268Z",
"url": "https://files.pythonhosted.org/packages/ff/c8/33d4d45959d50438771b3b6bdd3230dd5ecafcc4774a853ad48aa93dc701/easy_rss-1.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a992762062c09c15b7c55563c44472ff0f0130f45bd86c95dab9c4f800c981df",
"md5": "2c633dc3f01c84e2ae4922dc62902427",
"sha256": "f032a53703d6905ef97a4918ab7b04ec1477de36d0025b40aa5dbff3e36ec61d"
},
"downloads": -1,
"filename": "easy_rss-1.2.5.tar.gz",
"has_sig": false,
"md5_digest": "2c633dc3f01c84e2ae4922dc62902427",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4236,
"upload_time": "2024-09-05T18:39:35",
"upload_time_iso_8601": "2024-09-05T18:39:35.165115Z",
"url": "https://files.pythonhosted.org/packages/a9/92/762062c09c15b7c55563c44472ff0f0130f45bd86c95dab9c4f800c981df/easy_rss-1.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-05 18:39:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "michaelMondoro",
"github_project": "easy_rss",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "easy-rss"
}