<div align="center">
<img src="https://static.scarf.sh/a.png?x-pxid=cf317fe7-2188-4721-bc01-124bb5d5dbb2" />
## <img src="https://i.ibb.co/WcM7BDf/tg-crawler.png" width="166"/>
**💾 Daemon to download/upload telegram files.**
______________________________________________________________________
[![License](https://img.shields.io/badge/License-GPL--3.0-magenta.svg)](https://www.gnu.org/licenses/gpl-3.0.txt)
[![PyPI version](https://badge.fury.io/py/tg-crawler.svg)](https://badge.fury.io/py/tg-crawler)
![GithubActions](https://github.com/SantiiRepair/tg-crawler/actions/workflows/pylint.yml/badge.svg)
</div>
______________________________________________________________________
## Installing
💾 Tg-Crawler is tested on Ubuntu 18.04 and Windows 10 with **Python >= 3.10, <= 3.12.**
```bash
pip install tg-crawler
```
If you plan to code and make changes, clone and install it locally.
```bash
git clone https://github.com/SantiiRepair/tg-crawler.git
pip install -e .
```
### Downloading
<img src="https://i.ibb.co/tK7j6GJ/Screenshot-2023-10-28-08-26-30.png"/>
### 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](https://github.com/termcolor/termcolor#text-properties)._
### 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/SantiiRepair/tg-crawler",
"name": "tg-crawler",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<3.13",
"maintainer_email": "",
"keywords": "",
"author": "Santiago Ramirez",
"author_email": "santiirepair@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/44/ca/6b935237ec7f419b4932365af44f60290277b1911ebe80a59205c7354530/tg_crawler-1.0.0.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n<img src=\"https://static.scarf.sh/a.png?x-pxid=cf317fe7-2188-4721-bc01-124bb5d5dbb2\" />\n\n## <img src=\"https://i.ibb.co/WcM7BDf/tg-crawler.png\" width=\"166\"/>\n\n\n**\ud83d\udcbe Daemon to download/upload telegram files.**\n\n______________________________________________________________________\n\n[![License](https://img.shields.io/badge/License-GPL--3.0-magenta.svg)](https://www.gnu.org/licenses/gpl-3.0.txt)\n[![PyPI version](https://badge.fury.io/py/tg-crawler.svg)](https://badge.fury.io/py/tg-crawler)\n![GithubActions](https://github.com/SantiiRepair/tg-crawler/actions/workflows/pylint.yml/badge.svg)\n\n</div>\n\n______________________________________________________________________\n\n## Installing\n\n\ud83d\udcbe Tg-Crawler is tested on Ubuntu 18.04 and Windows 10 with **Python >= 3.10, <= 3.12.**\n\n```bash\npip install tg-crawler\n```\n\nIf you plan to code and make changes, clone and install it locally.\n\n```bash\ngit clone https://github.com/SantiiRepair/tg-crawler.git\npip install -e .\n```\n\n### Downloading\n\n<img src=\"https://i.ibb.co/tK7j6GJ/Screenshot-2023-10-28-08-26-30.png\"/>\n\n### Progress Bar \ud83d\udc7d\n\n- _**current: int**_\n - _The current download/upload amount bytes in integer._\n\n- _**total: int**_\n - _The total download/upload amount bytes in integer._\n\n- _**char: str, Optional**_\n - _The character in the progress bar._\n\n- _**desc: str, Optional**_\n - _Prefix at the beginning of the progress bar._\n\n- _**ncols: int, Optional**_\n - _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]_\n\n- _**unit: Union[str, list], Optional**_\n - _String that will be used to define the unit of each iteration. [default: it]_\n\n- _**unit_scale: bool, Optional**_\n - _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]_\n\n- _**unit_divisor: int, Optional**_\n - _[default: 1000], ignored unless unit_scale is True._\n\n- _**color: str, Optional**_\n - _Bar color (e.g. \"green\") [default: cyan] [available colors](https://github.com/termcolor/termcolor#text-properties)._\n\n### TODO \ud83d\udcdd\n\nAdd support for uploading files to Telegram from the command line \ud83d\ude80\n\n### \u2757 Atention\n\nThis code uses Telegram MTProto, so downloading files in a restricted group or channel is available.\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "\ud83d\udcbe Daemon to download/upload telegram files.",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/SantiiRepair/tg-crawler",
"Repository": "https://github.com/SantiiRepair/tg-crawler"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "de2d0bb6c353dacfadcbc15da80b11b3ed2b03c524654f6ad7fc910db415c0ca",
"md5": "15d84bced1b5bda9eee5e39192663fc7",
"sha256": "f00ba8d31e035750333fcc0a6e01a0e80ad6285d6dfed7eb177a662ba68525c8"
},
"downloads": -1,
"filename": "tg_crawler-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "15d84bced1b5bda9eee5e39192663fc7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<3.13",
"size": 16446,
"upload_time": "2023-10-28T14:21:42",
"upload_time_iso_8601": "2023-10-28T14:21:42.896355Z",
"url": "https://files.pythonhosted.org/packages/de/2d/0bb6c353dacfadcbc15da80b11b3ed2b03c524654f6ad7fc910db415c0ca/tg_crawler-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "44ca6b935237ec7f419b4932365af44f60290277b1911ebe80a59205c7354530",
"md5": "c8f2fcbd6a8626224e71909f4c353a98",
"sha256": "d3fc44238e05755b6885e63becc5478cfc779256bd2bc114225b61870a307411"
},
"downloads": -1,
"filename": "tg_crawler-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "c8f2fcbd6a8626224e71909f4c353a98",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<3.13",
"size": 15864,
"upload_time": "2023-10-28T14:21:44",
"upload_time_iso_8601": "2023-10-28T14:21:44.496338Z",
"url": "https://files.pythonhosted.org/packages/44/ca/6b935237ec7f419b4932365af44f60290277b1911ebe80a59205c7354530/tg_crawler-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-28 14:21:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SantiiRepair",
"github_project": "tg-crawler",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "click",
"specs": [
[
"==",
"8.1.7"
]
]
},
{
"name": "colorama",
"specs": [
[
"==",
"0.4.6"
]
]
},
{
"name": "pyrogram",
"specs": [
[
"==",
"2.0.106"
]
]
},
{
"name": "shutup",
"specs": [
[
"==",
"0.2.0"
]
]
},
{
"name": "termcolor",
"specs": [
[
"==",
"2.3.0"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.66.1"
]
]
},
{
"name": "tgcrypto",
"specs": [
[
"==",
"1.2.5"
]
]
}
],
"lcname": "tg-crawler"
}