Telegram bot that displays news from the site Playground
download the repository:
git clone https://github.com/ZeroNiki/Telegram-News-Scraping.git
Let's create a virtual environment before going to the folder:
python3 -m venv venv && source venv/bin/activate
install requirements:
pip install -r requirements.txt
open config.py:
TOKEN = "your bot token"
user_id = "Your user id"
You can get TOKEN from @botfather. And user id from @userinfobot
open main.py:
def main():
#get_news()
print(check_update())
check_update() can update your news_dict.json file and add new news
After all this. You can run bot.py and let's test. Send bot /start