Skip to content

Devil1716/Telegram-Scraper-Tot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Telegram-Scraper-Bot

Telegram Bot: drk17_bot

Overview

This Telegram bot scrapes the title of a webpage when you send it a valid URL.

Requirements

  • Python 3.x
  • requests library (pip install requests)
  • beautifulsoup4 library (pip install beautifulsoup4)
  • python-telegram-bot library (pip install python-telegram-bot)

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/your_username/your_repo.git
    cd your_repo
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up Telegram Bot API Token:

    • Obtain your Telegram Bot API token from BotFather on Telegram.
    • Replace 'YOUR_TELEGRAM_API_TOKEN_HERE' in code.py with your actual API token.
  4. Run the bot:

    python code.py
  5. Interact with the bot:

    • Start the bot by sending /start command.
    • Send a URL to the bot, and it will respond with the title of the webpage.

Bot Commands

  • /start: Start the bot and receive a greeting message.
  • /help: Display help message with information about available commands.
  • Other commands you may want to add can be documented here.

Additional Notes

  • Make sure to handle errors gracefully, especially when fetching titles from URLs.
  • Customize the bot's behavior and add more features as needed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages