{"library":"feedparser","code":"import feedparser\nimport os\n\n# Replace with a real RSS/Atom feed URL\nfeed_url = os.environ.get('FEED_URL', 'http://feedparser.org/docs/examples/atom10.xml')\n\nd = feedparser.parse(feed_url)\n\nprint(f\"Feed Title: {d.feed.title}\")\nif d.entries:\n    first_entry = d.entries[0]\n    print(f\"First Entry Title: {first_entry.title}\")\n    print(f\"First Entry Link: {first_entry.link}\")\n    if hasattr(first_entry, 'published_parsed'):\n        print(f\"First Entry Published: {first_entry.published_parsed}\")\n","lang":"python","description":"Parses a given feed URL and prints the feed title, the title of the first entry, and its link. It handles both RSS and Atom feeds, normalizing their structures.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}