{"id":19899863,"url":"https://github.com/hamid0740/font-downloader","last_synced_at":"2025-08-24T08:28:32.688Z","repository":{"id":249654961,"uuid":"471781450","full_name":"hamid0740/Font-Downloader","owner":"hamid0740","description":"Python script that helps you to inspect and download all weights of a font which is hosted on a website.","archived":false,"fork":false,"pushed_at":"2022-04-02T19:21:52.000Z","size":92,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T07:51:44.903Z","etag":null,"topics":["font","font-download","fonts","python","termux"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamid0740.png","metadata":{"files":{"readme":"README-fa.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-19T18:33:46.000Z","updated_at":"2024-08-23T02:18:32.000Z","dependencies_parsed_at":"2024-07-22T14:43:40.122Z","dependency_job_id":null,"html_url":"https://github.com/hamid0740/Font-Downloader","commit_stats":null,"previous_names":["hamid0740/font-downloader"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamid0740%2FFont-Downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamid0740%2FFont-Downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamid0740%2FFont-Downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamid0740%2FFont-Downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamid0740","download_url":"https://codeload.github.com/hamid0740/Font-Downloader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252116432,"owners_count":21697377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["font","font-download","fonts","python","termux"],"created_at":"2024-11-12T20:10:08.069Z","updated_at":"2025-05-02T22:32:01.745Z","avatar_url":"https://github.com/hamid0740.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n\u003ca href=\"https://github.com/hamid0740/Font-Downloader/blob/main/README.md\"\u003e\u003cimg alt=\"English language\" src=\"https://img.shields.io/badge/lang-en-50d890?labelColor=black\u0026style=for-the-badge\u0026logo=google-translate\u0026logoColor=white\"\u003e\u003c/a\u003e\r\n\u003c/div\u003e\r\n\r\n- - - -\r\n\r\n\u003cdiv dir=rtl align=\"right\"\u003e\r\n\r\n# 📥فونت دانلودر[![ورژن](https://img.shields.io/github/v/release/hamid0740/Font-Downloader?color=purple\u0026label=Version)](#فونت-دانلودر)\r\nاین یه اسکریپت پایتون هست که به شما توی کاوش کردن و دانلود همه وزن‌های یک فونت که توی وبسایتی میزبانی می‌شن کمک می‌کنه.\r\n\r\nبرای یادگیری استفاده از این اسکریپت، [دستورالعمل](#دستورالعمل) رو بخونید.\r\n\r\n**[📥 دانلود ورژن 1.9](https://github.com/hamid0740/Font-Downloader/releases/download/v1.9/Font-Downloader.py)**\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n\u003ca href=\"https://github.com/hamid0740/Font-Downloader/releases/download/v1.9/Font-Downloader.py\"\u003e\u003cimg alt=\"دانلودها\" src=\"https://img.shields.io/github/downloads/hamid0740/Font-Downloader/total?color=green\u0026label=Downloads\u0026logo=bookmeter\u0026logoColor=green\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/hamid0740/Font-Downloader/blob/main/LICENSE\"\u003e\u003cimg alt=\"لایسنس\" src=\"https://img.shields.io/github/license/hamid0740/Font-Downloader?color=blue\u0026label=License\u0026logo=quicklook\u0026logoColor=blue\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/hamid0740/Font-Downloader/stargazers\"\u003e\u003cimg alt=\"ستاره‌ها\" src=\"https://img.shields.io/github/stars/hamid0740/Font-Downloader?color=gold\u0026label=Stars\u0026logo=apachespark\u0026logoColor=gold\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://github.com/hamid0740/Font-Downloader/issues\"\u003e\u003cimg alt=\"اشکالات گزارش‌شده\" src=\"https://img.shields.io/github/issues/hamid0740/Font-Downloader?color=orange\u0026label=Issues\u0026logo=openbugbounty\u0026logoColor=orange\"\u003e\u003c/a\u003e\r\n\u003c/div\u003e\r\n\r\n### 📸اسکرین‌شات\r\n\r\n![اسکرین‌شات](https://i.ibb.co/dMnrTvG/Font-Downloader-screenshot.jpg)\r\n\r\n**نکته:** برای گرفتن اسکرین‌شات، اسکریپت ویرایش شده تا ارتفاع تصویر کمتر بشه.\r\n\r\n## 👣دستورالعمل\r\n1. ترموکس رو از [اینجا](https://f-droid.org/en/packages/com.termux) دانلود و نصب کنید. شما باید زبان پایتون رو هم از قبل نصب کرده باشید و کتابخونه‌های `requests` و `colorama` رو هم برای پایتون داشته باشید. برای یادگیری روش نصب این کتابخونه‌ها، [اینجا](https://www.geeksforgeeks.org/how-to-install-requests-in-python-for-windows-linux-mac/) رو بخونید.\r\n\r\n2. کدهای زیر رو توی ترموکس اجرا کنید:\r\n   ```\r\n   pkg install python\r\n   pip install requests\r\n   pip install colorama\r\n   termux-setup-storage\r\n   cd /path/to/code\r\n   python Font-Downloader.py\r\n   ```\r\n\r\n3. در اولین ورودی باید مشخص کنید که اسکریپت با چه سرعتی وزن‌های فونت رو کاوش کنه. سرعت `1` تقریباً ۴ برابر سریع‌تر از سرعت `2` هست؛ در نتیجه دقتش کمتر میشه.\r\n\r\n4. در دومین ورودی باید اسم فونتی که قراره سیو بشه رو وارد کنید.\r\n\r\n5. در سومین ورودی باید باید لینک مستقیم یا الگوی فایل فونت رو وارد کنید. یه فایل فونت رو توی وبسایتی پیدا کنید و لینکش رو اونجا وارد کنید. می‌تونید از این متغیرها استفاده‌ کنید تا لینک الگو رو خودتون بسازید.\r\n   ```\r\n   {WEIGHT}: Thin, Regular, Bold ...\r\n   {FORMAT}: eot, ttf, woff2 ...\r\n   ```\r\n   مثال:\r\n   ```\r\n   Direct: https://example.com/fonts/Arial/woff2/Arial-Bold.woff2\r\n   Pattern: https://example.com/fonts/Arial/{FORMAT}/Arial-{WEIGHT}.{FORMAT}\r\n   ```\r\n\r\n6. برای چهارمین ورودی باید کوچک یا بزرگی حروف اسم وزن‌ها را با توجه به بررسی‌های خودتون توی لینک فونت‌ها مشخص کنید. اگه تا حالا بررسی انجام ندادید، `all` رو وارد کنید تا همه چیز تست بشه.\r\n   ```\r\n   's' for Standard case (25-120 weight names)\r\n   'l' for Lower case (17-70 weight names)\r\n   'u' for Upper case (17-70 weight names)\r\n   'all' for All cases (59-260 weight names)\r\n   ```\r\n   شما می‌تونید حروف رو ترکیب کنید تا کوچک بزرگی ترکیبی داشته باشید. مثلاً با وارد کردن `lu` می‌تونید هم حروف کوچک و هم حروف بزرگ رو برای کاوش کردن انتخاب کنید.\r\n\r\n7. الآن کار شما تموم شده. فقط تا پایان کاوش صبر کنید.\r\n\r\n## 🗃داده‌ها\r\n### ⚖اسامی وزن فونت\r\nاینا با توجه به تحقیقات من توی خانواده فونت‌های مختلف هستند.\r\n* هیچ‌وقت پیشوندی نمی‌گیرن:\r\n\r\n  **(سرعت 1)**\r\n  ```\r\n  Thin\r\n  Hairline\r\n  Regular\r\n  Medium\r\n  Heavy\r\n  Fat\r\n  ```\r\n  **(سرعت 2)**\r\n  ```\r\n  Hairline\r\n  Line\r\n  Book\r\n  News\r\n  Demi\r\n  Regular\r\n  Normal\r\n  Text\r\n  Medium\r\n  Heavy\r\n  Mass\r\n  Fat\r\n  Poster\r\n  ```\r\n* ممکنه Extra، Ultra یا Very بگیرن:\r\n\r\n  **(سرعت 1)** Very نمی‌گیرن\r\n  ```\r\n  Light\r\n  Bold\r\n  Black\r\n  ```\r\n  **(سرعت 2)**\r\n  ```\r\n  Thin\r\n  Light\r\n  Lite\r\n  Thick\r\n  Bold\r\n  Dark\r\n  Black\r\n  ```\r\n* ممکنه Semi یا Demi بگیرن:\r\n\r\n  **(سرعت 1)**\r\n  ```\r\n  Bold\r\n  ```\r\n  **(سرعت 2)**\r\n  ```\r\n  Light\r\n  Bold\r\n  ```\r\n### 📁فرمت‌ها\r\nاین فرمت‌های فونت توسط اسکریپت کاوش می‌شن:\r\n```\r\neot\r\notf (سرعت 2)\r\nsvg (سرعت 2)\r\nttf\r\nwoff\r\nwoff2\r\n```\r\n\r\n## 📝لیست برای-انجام\r\n* [ ] جلوگیری از کرش شدن اسکریپت و نمایش دادن خطا بجاش (شاید یه روزی...)\r\n* به من ایده بدید تا این اسکریپت رو کامل و بهترش کنم :)\r\n\r\n## 📤خروجی\r\nوقتی پروسه کامل بشه، یه فولدر در جایی که فایل کد قرار داره ساخته می‌شه که شامل همه فونت‌های دانلود شده هست، تفکیک‌شده بر اساس فرمتشون. توی این فولدر یک فایل text هم به نام `FONTNAME-Links.txt` ساخته میشه که لینک همه فونت‌های دانلود شده رو داره.\r\nیه فایل دیگه هم به نام `FONTNAME-Links-All.txt` وجود داره که همه لینک‌های کاوش شده رو داره. این بدرد کسایی می‌خوره که می‌خوان همه لینک‌ها رو بصورت دستی و با استفاده از دانلود منیجر بررسی کنند.\r\n\r\n\u003c/div\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamid0740%2Ffont-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamid0740%2Ffont-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamid0740%2Ffont-downloader/lists"}