{"id":15025662,"url":"https://github.com/code-hex/pget","last_synced_at":"2025-04-08T02:42:57.541Z","repository":{"id":9491339,"uuid":"62295217","full_name":"Code-Hex/pget","owner":"Code-Hex","description":"The fastest, resumable file download client","archived":false,"fork":false,"pushed_at":"2023-10-19T12:12:50.000Z","size":1044,"stargazers_count":1137,"open_issues_count":10,"forks_count":78,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-10-29T17:40:45.731Z","etag":null,"topics":["concurrency","download","downloader","fast","go","golang","http","parallel","pget","resume"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Code-Hex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"Code-Hex"}},"created_at":"2016-06-30T08:48:30.000Z","updated_at":"2024-10-28T07:25:36.000Z","dependencies_parsed_at":"2023-10-11T13:14:47.455Z","dependency_job_id":"2bfe28c2-eeb2-4b6e-8557-93322db03432","html_url":"https://github.com/Code-Hex/pget","commit_stats":{"total_commits":111,"total_committers":9,"mean_commits":"12.333333333333334","dds":0.6126126126126126,"last_synced_commit":"7cb7dea95a0f9b510dc7a64e8c1f521178734e6f"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fpget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fpget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fpget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fpget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/pget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767232,"owners_count":20992538,"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":["concurrency","download","downloader","fast","go","golang","http","parallel","pget","resume"],"created_at":"2024-09-24T20:02:48.067Z","updated_at":"2025-04-08T02:42:57.521Z","avatar_url":"https://github.com/Code-Hex.png","language":"Go","readme":"Pget - The fastest file download client\n=======\n\n[![.github/workflows/main.yaml](https://github.com/Code-Hex/pget/actions/workflows/main.yaml/badge.svg)](https://github.com/Code-Hex/pget/actions/workflows/main.yaml)\n[![codecov](https://codecov.io/gh/Code-Hex/pget/branch/master/graph/badge.svg?token=jUVGnY7ZlG)](undefined)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Code-Hex/pget)](https://goreportcard.com/report/github.com/Code-Hex/pget)\n[![GitHub release](https://img.shields.io/github/release/Code-Hex/pget.svg)](https://github.com/Code-Hex/pget)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\n**Ad**: I'm currently developing a new date and time library [synchro](https://github.com/Code-Hex/synchro) for the modern era. please give it ⭐!!\n\n## Description\n\nMulti-Connection Download using parallel requests.\n\n- Fast\n- Resumable\n- Cross-compiled (windows, linux, macOS)\n\nThis is an example to download [linux kernel](https://www.kernel.org/). It will be finished between 15s.\n\n![pget](https://user-images.githubusercontent.com/6500104/147878414-321c57ad-cff2-40f3-b2a4-12c30ff1363f.gif)\n\n\n## Disclaimer\n\nThis program comes with no warranty. You must use this program at your own risk.\n\n### Note\n\n- Using a large number of connections to a single URL can lead to DOS attacks.\n- The case is increasing that if you use multiple connections to 1 URL does not increase the download speed with the spread of CDNs.\n  - I recommend to use multiple mirrors simultaneously for faster downloads (And the number of connections is 1 for each).\n\n## Installation\n\n### Homebrew\n\n    $ brew install pget\n\n### Go\n\n    $ go install github.com/Code-Hex/pget/cmd/pget@latest\n\n## Synopsis\n\nThis example will be used 2 connections per URL.\n\n    $ pget -p 2 MIRROR1 MIRROR2 MIRROR3\n\nIf you have created such as this file\n\n    cat list.txt\n    MIRROR1\n    MIRROR2\n    MIRROR3\n\nYou can do this\n\n    cat list.txt | pget -p 2\n\n## Options\n\n```\n  Options:\n  -h,  --help                   print usage and exit\n  -p,  --procs \u003cnum\u003e            the number of connections for a single URL (default 1)\n  -o,  --output \u003cfilename\u003e      output file to \u003cfilename\u003e\n  -t,  --timeout \u003cseconds\u003e      timeout of checking request in seconds\n  -u,  --user-agent \u003cagent\u003e     identify as \u003cagent\u003e\n  -r,  --referer \u003creferer\u003e      identify as \u003creferer\u003e\n  --check-update                check if there is update available\n  --trace                       display detail error messages\n```\n\n## Pget vs Wget\n\nURL: https://mirror.internet.asn.au/pub/ubuntu/releases/21.10/ubuntu-21.10-desktop-amd64.iso\n\nUsing\n```\ntime wget https://mirror.internet.asn.au/pub/ubuntu/releases/21.10/ubuntu-21.10-desktop-amd64.iso\ntime pget -p 6 https://mirror.internet.asn.au/pub/ubuntu/releases/21.10/ubuntu-21.10-desktop-amd64.iso\n```\nResults\n\n```\nwget   3.92s user 23.52s system 3% cpu 13:35.24 total\npget -p 6   10.54s user 34.52s system 25% cpu 2:56.93 total\n```\n\n`wget` 13:35.24 total, `pget -p 6` **2:56.93 total (6x faster)**\n\n## Binary\n\nYou can download from [here](https://github.com/Code-Hex/pget/releases)\n\n## Author\n\n[codehex](https://twitter.com/CodeHex)\n","funding_links":["https://github.com/sponsors/Code-Hex"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fpget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Fpget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fpget/lists"}