Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/AmirAref/Torobot

an inline telegram robot to easy access and search in torob.com products from telegram.
https://github.com/AmirAref/Torobot

crawler python python-telegram-bot scraper telegtam-bot

Last synced: about 2 months ago
JSON representation

an inline telegram robot to easy access and search in torob.com products from telegram.

Awesome Lists containing this project

README

        

# Torobot
a telegram bot to crawl and scrape data from [torob.com](https://torob.com) and display them in the telegram.

## Installation
clone the repository and go to the repo directory, then do as following :

### Configuration :
copy the `.env-sample` file to `.env` and replace the following values :

- `TOKEN` :
get your bot token from [BotFather](https://t.me/BotFather) (or if you don't have, make one there).
then put it in the `TOKEN`

- `PROXY` :
if you want to use proxy to connect to the telegram, put your proxy url like the following :
- `PROXY = 'socks5://127.0.0.1:9050'` : socks5 proxy
- `#PROXY=None` : leave it with comment for non-proxy (or remove the line)

### Run Using Docker
this robot is dockerized and you can easily run it with docker compose :
```bash
docker compose up --build -d
```

### Manually Run

install the requirements :
```bash
pip install -r requirements.txt
```

finally run the program :
```bash
set -o allexport && source .env && set +o allexport
python bot.py
```