Skip to main content

💾 Daemon to download/upload telegram files.

Project description

💾 Daemon to download/upload telegram files.


License PyPI version GithubActions


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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tg_crawler-1.0.0.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

tg_crawler-1.0.0-py3-none-any.whl (16.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page