{"name":"feedparser: A Robust Python Library for Parsing Feeds","description":"feedparser is a widely-used and reliable Python library designed for parsing Atom and RSS feeds. It simplifies the process of extracting data from various feed formats, making it an essential tool for developers working with syndicated content. With extensive testing and clear documentation, feedparser offers a straightforward solution for feed consumption in Python applications.","github":"https://github.com/kurtmckee/feedparser","url":"https://osrepos.com/repo/kurtmckee-feedparser","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/kurtmckee-feedparser","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/kurtmckee-feedparser.md","json":"https://osrepos.com/repo/kurtmckee-feedparser.json","topics":["python","feed parsing","rss","atom","data extraction","web development","syndication","json"],"keywords":["python","feed parsing","rss","atom","data extraction","web development","syndication","json"],"stars":null,"summary":"feedparser is a widely-used and reliable Python library designed for parsing Atom and RSS feeds. It simplifies the process of extracting data from various feed formats, making it an essential tool for developers working with syndicated content. With extensive testing and clear documentation, feedparser offers a straightforward solution for feed consumption in Python applications.","content":"## Introduction\n\n`feedparser` is a robust and widely-used Python library specifically designed for parsing Atom and RSS feeds. Developed by Kurt McKee and originally by Mark Pilgrim, this project simplifies the complex task of extracting structured data from various syndicated content formats. It's a reliable choice for developers needing to integrate feed consumption into their Python applications, released under the BSD 2-clause license.\n\n## Installation\n\nGetting started with `feedparser` is straightforward. You can install it using pip, the Python package installer:\n\nconsole\n$ pip install feedparser\n\n\n## Examples\n\nOnce installed, `feedparser` makes it easy to fetch and parse content from a feed URL. Here's a basic example demonstrating how to retrieve a feed and print its title and the titles and links of its entries:\n\npython\nimport feedparser\n\n# Parse a feed from a URL\nfeed = feedparser.parse('http://www.feedforall.com/sample.xml')\n\n# Print feed title\nprint(f\"Feed Title: {feed.feed.title}\")\n\n# Print entries\nprint(\"Entries:\")\nfor entry in feed.entries:\n    print(f\"- {entry.title}: {entry.link}\")\n\n\nThis snippet quickly shows how to access the feed's metadata and iterate through its articles or items.\n\n## Why Use It\n\n`feedparser` stands out as a premier choice for feed parsing in Python due to several key advantages:\n\n*   **Comprehensive Format Support:** It handles a wide array of feed formats, including Atom, RSS (all versions), RDF, and even JSON feeds, ensuring broad compatibility.\n*   **Reliability and Maturity:** As a long-standing project with an extensive test suite, `feedparser` offers stable and dependable performance for critical applications.\n*   **Ease of Use:** Its intuitive API allows developers to quickly integrate feed parsing capabilities with minimal boilerplate code.\n*   **Active Documentation:** The project provides clear and comprehensive documentation, making it easy for new users to get started and for experienced users to find detailed information.\n*   **Pythonic Design:** `feedparser` is designed with Python best practices in mind, making it feel natural to use within existing Python projects.\n\n## Links\n\n*   **GitHub Repository:** [https://github.com/kurtmckee/feedparser](https://github.com/kurtmckee/feedparser){:target=\"_blank\"}\n*   **Official Documentation:** [https://feedparser.readthedocs.io/en/latest/](https://feedparser.readthedocs.io/en/latest/){:target=\"_blank\"}","metrics":{"detailViews":6,"githubClicks":6},"dates":{"published":null,"modified":"2025-11-10T00:00:52.000Z"}}