Skip to content

Add news fetcher for today's headlines via RSS - #107

Draft
moulongzhang with Copilot wants to merge 4 commits into
mainfrom
copilot/update-todays-news
Draft

Add news fetcher for today's headlines via RSS#107
moulongzhang with Copilot wants to merge 4 commits into
mainfrom
copilot/update-todays-news

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown

Adds a Python script to fetch and display today's news headlines from public RSS feeds.

  • news_fetcher.py: Fetches top headlines from BBC News, CNN, and Reuters using only stdlib (urllib, xml.etree.ElementTree). Graceful error handling for unreachable feeds.
  • test_news_fetcher.py: Unit tests for XML parsing (titles, links, dates, empty feeds, missing elements).
  • .gitignore: Excludes __pycache__/ and *.pyc.
python news_fetcher.py
============================================================
  Today's News Headlines — 2026-02-10
============================================================

📰 BBC News
----------------------------------------
  1. Some headline here
     🔗 https://bbc.co.uk/...
     📅 Mon, 10 Feb 2026 08:00:00 GMT

The module exposes fetch_news(), parse_rss_xml(), and display_news() for programmatic use. No external dependencies required.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • feeds.bbci.co.uk
    • Triggering command: /usr/bin/python python news_fetcher.py (dns block)
  • feeds.reuters.com
    • Triggering command: /usr/bin/python python news_fetcher.py (dns block)
  • rss.cnn.com
    • Triggering command: /usr/bin/python python news_fetcher.py (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 10, 2026 05:46
Co-authored-by: moulongzhang <39043782+moulongzhang@users.noreply.github.com>
Co-authored-by: moulongzhang <39043782+moulongzhang@users.noreply.github.com>
…n fetch_rss

Co-authored-by: moulongzhang <39043782+moulongzhang@users.noreply.github.com>
Copilot AI changed the title [WIP] Fetch today's news articles and headlines Add news fetcher for today's headlines via RSS Feb 10, 2026
Copilot AI requested a review from moulongzhang February 10, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants