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

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

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 `__