💾 Daemon to download/upload telegram files.
Project description
Installing
💾 Tg-Crawler is tested on Ubuntu 18.04 and Windows 10 with Python >= 3.10, <= 3.12.
pip install tg-crawler
If you plan to code and make changes, clone and install it locally.
git clone https://github.com/SantiiRepair/tg-crawler.git
pip install -e .
Downloading
Progress Bar 👽
-
current: int
- The current download/upload amount bytes in integer.
-
total: int
- The total download/upload amount bytes in integer.
-
char: str, Optional
- The character in the progress bar.
-
desc: str, Optional
- Prefix at the beginning of the progress bar.
-
ncols: int, Optional
- The width of the entire output message. If specified, dynamically resizes the progress bar to stay within this bound. If unspecified, attempts to use environment width. The fallback is a meter width of 10 and no limit for the counter and statistics. [default: 75]
-
unit: Union[str, list], Optional
- String that will be used to define the unit of each iteration. [default: it]
-
unit_scale: bool, Optional
- If True, the number of iterations will be reduced/scaled automatically and a metric prefix following the International System of Units standard will be added (kilo, mega, etc.) [default: False]
-
unit_divisor: int, Optional
- [default: 1000], ignored unless unit_scale is True.
-
color: str, Optional
- Bar color (e.g. "green") [default: cyan] available colors.
TODO 📝
Add support for uploading files to Telegram from the command line 🚀
❗ Atention
This code uses Telegram MTProto, so downloading files in a restricted group or channel is available.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tg_crawler-1.0.0.tar.gz
.
File metadata
- Download URL: tg_crawler-1.0.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3fc44238e05755b6885e63becc5478cfc779256bd2bc114225b61870a307411 |
|
MD5 | c8f2fcbd6a8626224e71909f4c353a98 |
|
BLAKE2b-256 | 44ca6b935237ec7f419b4932365af44f60290277b1911ebe80a59205c7354530 |
File details
Details for the file tg_crawler-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: tg_crawler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f00ba8d31e035750333fcc0a6e01a0e80ad6285d6dfed7eb177a662ba68525c8 |
|
MD5 | 15d84bced1b5bda9eee5e39192663fc7 |
|
BLAKE2b-256 | de2d0bb6c353dacfadcbc15da80b11b3ed2b03c524654f6ad7fc910db415c0ca |