https://github.com/serpo-dev/telegraph-media-parser
Easy parse images and videos from articles on telegra.ph. Powered by Pyhon 3 and running from the CLI.
https://github.com/serpo-dev/telegraph-media-parser
images parser python telegram telegraph video
Last synced: about 2 months ago
JSON representation
Easy parse images and videos from articles on telegra.ph. Powered by Pyhon 3 and running from the CLI.
- Host: GitHub
- URL: https://github.com/serpo-dev/telegraph-media-parser
- Owner: serpo-dev
- Created: 2023-02-09T09:44:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-09T11:15:55.000Z (over 2 years ago)
- Last Synced: 2023-08-07T19:18:58.179Z (almost 2 years ago)
- Topics: images, parser, python, telegram, telegraph, video
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telegraph-media-parser
It's a simple tool for parse images and videos from articles on [telegra.ph](https://telegra.ph/). Powered by Python 3. Running from the CLI.
### Installation and use
Before launching you must make sure that `pip` and `python3` are installed on your device globally.
1. In the root folder of the project run the command:
```sh
pip install -r requirements.txt
```
2. Insert links in the file `input.txt`. Each link must start on a new line, for example:
```sh
https://telegra.ph/article1
https://telegra.ph/article2
...
```
3. Then run the command:
```sh
python main.py
```
You can specify what you exactly want to save by these flags:
- `-img` or `--images` ,
- `-video` or `--videos` .By the default, it downloads a both.
4. The media is saving in the `downloads/` folder that automatically creates in the root directory.
```
telegra.ph-media-parser
│
├── downloads/
│ └── article1/...
│ └── article2/...
│ └── ...
└── main.py
└── input.txt
└── requirements.txt
```