{"id":21512208,"url":"https://github.com/sctech-tr/rsstools","last_synced_at":"2026-01-29T05:45:32.817Z","repository":{"id":264120713,"uuid":"874379690","full_name":"sctech-tr/rsstools","owner":"sctech-tr","description":"tools for managing rss feeds in python","archived":false,"fork":false,"pushed_at":"2024-11-30T11:07:16.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T11:42:05.187Z","etag":null,"topics":["feed","feed-reader","news","pip","python","python-rss","python3","rss","rss-feed","rss-generator","rssfeed"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/rsstools/","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/sctech-tr.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}},"created_at":"2024-10-17T18:10:37.000Z","updated_at":"2024-11-30T11:07:19.000Z","dependencies_parsed_at":"2024-11-22T05:45:37.671Z","dependency_job_id":null,"html_url":"https://github.com/sctech-tr/rsstools","commit_stats":null,"previous_names":["sctech-tr/rsstools"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sctech-tr%2Frsstools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sctech-tr%2Frsstools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sctech-tr%2Frsstools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sctech-tr%2Frsstools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sctech-tr","download_url":"https://codeload.github.com/sctech-tr/rsstools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085739,"owners_count":21045201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","feed-reader","news","pip","python","python-rss","python3","rss","rss-feed","rss-generator","rssfeed"],"created_at":"2024-11-23T22:30:02.684Z","updated_at":"2026-01-29T05:45:32.769Z","avatar_url":"https://github.com/sctech-tr.png","language":"Python","readme":"# rsstools\n\nA powerful Python tool for creating, editing, and managing RSS feeds with both programmatic and command-line interfaces.\n\n## Features\n\n- Create new RSS feeds with all required elements\n- Add, update, and remove items from feeds\n- Load and save RSS feeds to XML files\n- Validate feed structure and required elements\n- Command-line interface for easy management\n- Support for optional elements like author and publication date\n\n## Installation\n\n### Dependencies\n\nFirst, ensure you have Python 3.7 or higher installed. This package requires the following dependencies:\n\n```\nclick\u003e=8.0.0\n```\n\n### Installing via pip (recommended)\n\n1. Run this command:\n```bash\npip install rsstools\n```\n\n### Using via pyz\n\n1. Download the latest pyz from the releases tab.\n2. Make the file executable:\n```bash\nchmod +x rsstools.pyz\n```\n3. You can run it directly:\n```bash\npython rsstools.pyz\n```\n\nIf you need to extract the contents:\n```bash\nunzip rsstools.pyz -d rsstools_extracted\ncd rsstools_extracted\n```\n\n### Installing from source\n\nThis package requires the following dependencies:\n```\nclick\u003e=8.0.0\n```\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/sctech-tr/rsstools.git\ncd rsstools\n```\n\n2. Install the package:\n```bash\npip install .\n```\n\n## Usage\n\n### Command Line Interface\n\n1. Create a new RSS feed:\n```bash\nrsstools create -t \"My Blog\" -l \"https://myblog.com\" -d \"My personal blog\" -o feed.xml\n```\n\n2. Add an item to the feed:\n```bash\nrsstools add feed.xml \\\n-t \"First Post\" \\\n-l \"https://myblog.com/first\" \\\n-d \"My first post\" \\\n-a \"John Doe\" \\\n-p \"2024-10-18T12:00:00\"\n```\n\n3. List all items in a feed:\n```bash\nrsstools list feed.xml\n```\n\n4. Export items to JSON:\n```bash\nrsstools list feed.xml -o items.json\n```\n\n5. Update an item:\n```bash\nrsstools update feed.xml \"https://myblog.com/first\" -t \"Updated Post Title\"\n```\n\n6. Remove an item:\n```bash\nrsstools remove feed.xml \"https://myblog.com/first\"\n```\n\n### Python API\n\n```python\n\nfrom rsstools import RSSFeedCreator\nfrom datetime import datetime\n\n# Create a new feed\nfeed = RSSFeedCreator(\n    title=\"My Blog\",\n    link=\"https://myblog.com\",\n    description=\"My personal blog about technology\"\n)\n\n# Add an item\nfeed.add_item(\n    title=\"First Post\",\n    link=\"https://myblog.com/first-post\",\n    description=\"This is my first blog post\",\n    author=\"John Doe\",\n    pub_date=datetime.now()\n)\n\n# Save the feed\nfeed.save(\"blog_feed.xml\")\n\n# Load an existing feed\nfeed.load(\"blog_feed.xml\")\n\n# Update an item\nfeed.update_item(\n    guid=\"https://myblog.com/first-post\",\n    title=\"Updated First Post\"\n)\n\n# Remove an item\nfeed.remove_item(guid=\"https://myblog.com/first-post\")\n\n# Get all items\nitems = feed.get_items()\n```\n\n## Contributing\n\n1. Fork the repository\n2. Open a PR\n\n## License\n\nThis project is licensed under the GPL-3.0 License - see the LICENSE file for details.\n\n## Error Handling\n\nThe package uses custom exceptions (`RSSToolsError`) for error handling. Always wrap your code in try-except blocks when using the API:\n\n```python\nfrom rsstools import RSSFeedCreator, RSSToolsError\n\ntry:\n    feed = RSSFeedCreator(\"My Blog\", \"https://myblog.com\", \"My blog description\")\n    feed.save(\"feed.xml\")\nexcept RSSToolsError as e:\n    print(f\"Error: {str(e)}\")\n```\n\n## Common Issues and Solutions\n\n1. **Invalid Feed Structure**: Ensure your RSS feed follows the standard RSS 2.0 format.\n2. **File Permissions**: Make sure you have write permissions in the directory where you're saving the feed.\n3. **Date Format**: When using the CLI, provide dates in ISO format (YYYY-MM-DDTHH:MM:SS).\n\n## Getting Help\n\nUse the `--help` flag with any command to see available options:\n```bash\nrsstools --help\nrsstools create --help\nrsstools add --help\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsctech-tr%2Frsstools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsctech-tr%2Frsstools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsctech-tr%2Frsstools/lists"}