initial commit

This commit is contained in:
2026-03-25 00:44:14 -04:00
parent 6f0e393e55
commit 0bea824098
3 changed files with 117 additions and 1 deletions

14
example1.py Normal file
View File

@@ -0,0 +1,14 @@
import requests
import xml.etree.ElementTree as ET
rss_url = "https://news.google.com/rss/search?q=mathematics"
response = requests.get(rss_url)
root = ET.fromstring(response.content)
for item in root.findall(".//item")[:5]:
title = item.find("title").text
link = item.find("link").text
print("Title:", title)
print("Link:", link)
print("-" * 40)