-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,38 @@ | ||
# tg-parse-channels | ||
Telegram bot for parsing channels and posting pictures and videos to your own channels with pre-moderation. | ||
# Parse Telegram Channels | ||
_Telegram bot for parsing telegram channels._ | ||
|
||
### Run script | ||
Before run, set Telegram credentials and Parser settings in file `settings.py`. | ||
|
||
Create virtual environment | ||
``` | ||
python3 -m venv venv | ||
``` | ||
|
||
Enter to `venv` | ||
``` | ||
. venv/bin/activate | ||
``` | ||
|
||
Install python modules from requirements.txt | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Start script | ||
``` | ||
python3 main.py | ||
``` | ||
|
||
### Check images for integrity and correctness | ||
Example | ||
``` | ||
python3 is_photo.py | ||
Type absolute path to photos directory: <input absolute path to photos directory> | ||
<count> files to remove: | ||
<list of files> | ||
type YES for delete: <type YES or something for keep files> | ||
``` |