Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 968 Bytes

README.md

File metadata and controls

48 lines (31 loc) · 968 Bytes

About

PyPI - Python Version PyPI - Python Version

Telegram bot that displays news from the site Playground

Installation (GNU/LINUX)

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  

Usage

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