# Custom monitoring with filtersasync def monitor_with_filters(): while True: result = await extract_latest_article("https://bloomberg.com") if result["status"] == "success": article = result["data"] # Only alert on negative market news if article["sentiment"] == "negative" and "market" in article["title"].lower(): send_alert(article) await asyncio.sleep(300) # Check every 5 minutes