https://github.com/dead-beef/telegram-scraper-bot
Scraper bot for Telegram
https://github.com/dead-beef/telegram-scraper-bot
aiogram-bot asyncio python3 scraper telegram-bot
Last synced: 8 months ago
JSON representation
Scraper bot for Telegram
- Host: GitHub
- URL: https://github.com/dead-beef/telegram-scraper-bot
- Owner: dead-beef
- License: mit
- Created: 2020-10-20T19:17:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T10:30:01.000Z (over 5 years ago)
- Last Synced: 2025-02-04T16:32:11.704Z (over 1 year ago)
- Topics: aiogram-bot, asyncio, python3, scraper, telegram-bot
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
telegram-scraper-bot
====================
Overview
--------
Scraper bot for Telegram.
Requirements
------------
- `Python >=3.7 `__
Installation
------------
.. code:: bash
git clone https://github.com/dead-beef/telegram-scraper-bot
cd telegram-scraper-bot
python3 -m venv
python3 -m venv --system-site-packages env
source env/bin/activate
pip install -e .[ig,dev]
Usage
-----
::
usage: python -m bot [-h] [-l {critical,error,warning,info,debug}] [-w] [-s] FILE
positional arguments:
FILE config file
optional arguments:
-h, --help show this help message and exit
-l {critical,error,warning,info,debug}, --log-level {critical,error,warning,info,debug}
log level (default: info)
-w, --watch
-s, --single-run (default)
Config
------
::
{
"token": "",
"proxy": "://:",
"public_admin_commands_enabled": ,
"last_update_id": -1,
"update_timeout": ,
"link_update_interval": ,
"connections_limit": ,
"loader": {
"user_agent": "",
"min_delay": ,
"max_delay": ,
"max_connections": ,
"max_connections_per_host": ,
"max_workers": ,
"cookies": {
"": {
"": ""
, ...
}
, ...
}
},
"admins": [
, ...
],
"chats": []
}
Commands
--------
::
commands:
/start, /help - bot help
/chatinfo - show chat info
admin commands:
/watch - add link to current chat
/unwatch - remove link from current chat
/unwatch - remove all links from current chat
/admin [user_id or reply] - add bot admin
/admin [user_id or reply] false - remove bot admin
admin commands in private chat:
/watch - add link to chat by id
/unwatch - remove link from chat by id
/unwatch - remove all links from chat by id
Testing
-------
.. code:: bash
./test
Licenses
--------
- `telegram-scraper-bot `__