No description
Find a file
2024-10-23 14:40:55 +03:00
configs configs and defaults 2024-10-23 14:26:09 +03:00
pgbotlib get rid of import and functions on declaring variables in defaults module 2024-10-23 14:40:55 +03:00
.gitignore docs, gitignore 2023-10-31 02:28:16 +02:00
Dockerfile time to move to docker 2024-10-19 22:21:22 +03:00
LICENSE Initial commit 2023-10-30 23:38:30 +00:00
pgbot move defaults to the separate module 2024-10-23 14:35:36 +03:00
populate update populate script, fuck if I know why 2024-08-10 04:51:58 +03:00
README.md update readme 2023-11-05 01:07:09 +00:00
requirements.txt fix requirements 2024-10-19 23:21:14 +03:00
start.sh add script to more conveniently start pgbot 2024-08-10 04:51:43 +03:00

pgbot

Use config.yml to set it up. It needs a list of regex with tokens and a database to match them. This doc is probably going to be abandoned right away, but at least I have added this line I dunno.

Dependencies:

  • aiocron - for the scheduler
  • bs4 - for parsing html
  • fake_headers - for tricking search engines
  • psycopg - for pgsql
  • pyyaml - for config parsing
  • requests - for http requests
  • telethon - for interacting with bot api

Initial setup:

python -m venv .venv
source .venv/bin/activate
pip install aiocron bs4 fake_headers psycopg pyyaml requests telethon