/telegram-bot

The project consists of a Telegram bot that interacts with the user through custom commands defined by the user and is able to provide useful information using scraping techniques.

Primary LanguagePythonThe UnlicenseUnlicense

Telegram Bot Scraper

The project consists of a Telegram bot that interacts with the user through custom commands defined by the user and is able to provide useful information using scraping techniques.

Requirements

  • Python (3.11.3)
  • Docker (optional, for running in a container)

Environment variables

  • Create two environment variable configuration files named .env.dev and .env.prod, using the template.env file as a reference

Installation without docker

    1. Clone the repository:
    git clone https://github.com/WorldWideDevelop/telegram-bot-scraper.git
    1. Go to project path:
    cd project-name-path
    1. Virtual environment:
    python -m venv venv
    source venv/bin/activate  # Linux/Mac
    venv\Scripts\activate  # Windows
    1. Install requirements:
    pip install -r docker/development/requirements.txt

Usage

    1. Run app
    python app/main.py

Usage with Docker (optional)

    1. Run docker compose:
    docker compose up --build

Server

Contribution

If you want to contribute to this project, follow these steps:

    1. Fork the repository.
    1. Create a branch for your contribution: git checkout -b feature/new-feature.
    1. Make your modifications and commit the changes: git commit -am 'Add new feature'.
    1. Push to your repository: git push origin feature/new-feature.
    1. Open a pull request in the original repository.

Credits

  • Author: Jorge Quintui