Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month ago
JSON representation
an inline telegram robot to easy access and search in torob.com products from telegram.
- Host: GitHub
- URL: https://github.com/AmirAref/Torobot
- Owner: AmirAref
- License: mit
- Created: 2022-06-29T18:12:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T06:16:55.000Z (5 months ago)
- Last Synced: 2024-08-06T00:58:35.990Z (5 months ago)
- Topics: crawler, python, python-telegram-bot, scraper, telegtam-bot
- Language: Python
- Homepage:
- Size: 1.76 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```