It's a simple tool for parse images and videos from articles on telegra.ph. Powered by Python 3. Running from the CLI.
Before launching you must make sure that pip and python3 are installed on your device globally.
- In the root folder of the project run the command:
pip install -r requirements.txt- Insert links in the file
input.txt. Each link must start on a new line, for example:
https://telegra.ph/article1
https://telegra.ph/article2
...- Then run the command:
python main.pyYou can specify what you exactly want to save by these flags:
-imgor--images,-videoor--videos.
By the default, it downloads a both.
- 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