# Brand Monitoring Source Test Script ```python import urllib.request, ssl, feedparser, re def test_source(name, url, method='rss'): print(f"--- Testing {name} ---") headers = {'User-Agent': 'Mozilla/5.0'} ctx = ssl._create_unverified_context() try: req = urllib.request.Request(url, headers=headers) with urllib.request.urlopen(req, timeout=10, context=ctx) as response: status = response.status body = response.read().decode('utf-8', errors='replace') print(f"Status: {status}") if method == 'rss': feed = feedparser.parse(body) print(f"Found {len(feed.entries)} entries") if len(feed.entries) > 0: print(f"First title: {feed.entries[0].title}") else: matches = len(re.findall(r'Fulbright|fulbright', body, re.IGNORECASE)) print(f"Matches: {matches}") except Exception as e: print(f"Error: {e}") # Example: # test_source("Google News", "https://news.google.com/rss/search?q=Fulbright+Vietnam", method='rss') ```