# RSS Headlines with Article Links

By default RSS parsing only extracts titles. Users often want clickable links too.

## Code

```python
import random

def get_news_articles(feeds):
    articles = []
    for feed_url in feeds:
        try:
            feed = feedparser.parse(feed_url)
            for entry in feed.entries[:3]:
                title = entry.get("title", "").strip()
                link  = entry.get("link", "").strip()
                if title and len(title) > 10 and link:
                    articles.append((title, link))
        except Exception:
            continue
    if not articles:
        return "*Couldn't fetch news today.*"
    selected = random.sample(articles, min(3, len(articles)))
    return "\n".join(f"• {title}\n  {link}" for title, link in selected)
```

## Message formatting

WhatsApp and Telegram auto-linkify bare URLs. Format each item as:
```
• Headline text
  https://example.com/article
```

This keeps the message readable while making the link easy to tap.
