Парсер новостей с автоматической отправкой в Telegram
pip install requests beautifulsoup4 python-telegram-bot Создадим файл news_parser.py: import requests
from bs4 import BeautifulSoup
def parse_habr_news(keywords):
url = "https://habr.com/ru/flows/develop/articles/"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
articles = []
for article in soup.find_all("article"):
title = article.find("h2").text.strip()
link = article.find_all('a')[2]["href"]
if any(word.lower() in title...