{"id":37088234,"url":"https://github.com/mehdieidi/offliner","last_synced_at":"2026-01-14T10:50:36.014Z","repository":{"id":57647651,"uuid":"434993676","full_name":"mehdieidi/offliner","owner":"mehdieidi","description":"Offliner is a tool to make a website offline viewable. It's a concurrent web crawler which saves all the pages and static files in a directory. ","archived":false,"fork":false,"pushed_at":"2022-01-07T12:42:28.000Z","size":23224,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T12:40:45.002Z","etag":null,"topics":["concurrency","concurrent","concurrent-programming","crawler","go","golang","goroutine","multiprocessing","multithreading","process","scraper","thread"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mehdieidi.png","metadata":{"files":{"readme":"README.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}},"created_at":"2021-12-04T19:43:02.000Z","updated_at":"2023-04-03T08:07:22.000Z","dependencies_parsed_at":"2022-08-25T06:50:22.323Z","dependency_job_id":null,"html_url":"https://github.com/mehdieidi/offliner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mehdieidi/offliner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdieidi%2Foffliner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdieidi%2Foffliner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdieidi%2Foffliner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdieidi%2Foffliner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehdieidi","download_url":"https://codeload.github.com/mehdieidi/offliner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdieidi%2Foffliner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","concurrent","concurrent-programming","crawler","go","golang","goroutine","multiprocessing","multithreading","process","scraper","thread"],"created_at":"2026-01-14T10:50:35.440Z","updated_at":"2026-01-14T10:50:36.010Z","avatar_url":"https://github.com/mehdieidi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# offliner\nOffliner is a tool to make a website offline viewable. It's a concurrent web crawler which crawls a website and saves all the pages and static files in a directory.\u003cbr\u003e\nIt can use both, multi-processing \u0026 multi-threading as its concurrency model.\n\n![offliner](screenshot.png)\n\n## Features\n* Serial scraping.\n* Multi-threaded scraping.\n* Multi-process scraping.\n* Save static files (css, js, img).\n* Edit the links on the pages to reference the local files.\n## Usage\nYou need to provide a full URL to start the scraping. You can use the defined flags to control the features. If you intend to use the multi-process form, the \"process\" program must exist in the same directory as the \"offliner\" program.\n```\n-h     show help.\n-url   full URL of the start page.\n-f     save static files too. It also edits the pages so the links reference the local files.\n-a     use multi-processing instead of multi-threading as the concurrency model.\n-n     maximum number of the pages to be saved. (default is 100)\n-p     maximum number of the execution units (goroutines or processes) to run at the same time. (default is 50)\n-s     run the scraper in a non-concurrent (serial) fashion.\n```\n## Examples\nMulti-threaded scraping. Save max 100 pages using max 90 goroutines. Save static files too.\n```\n./offliner -url=https://urmia.ac.ir -n=100 -p=90 -f\n```\n\nMulti-process scraping. Save max 100 pages using max 50 processes.\n```\n./offliner -url=https://urmia.ac.ir -n=100 -p=50 -a\n```\n\nSerial scraping. Save max 100 pages. Save static files too.\n```\n./offliner -url=https://urmia.ac.ir -n=100 -s -f\n```\n## Todo\n* Improve multi-processing design.\n* Add a logger.\n* Make the scraper a separate package (library).\n\n## License\nGNU General Public License v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehdieidi%2Foffliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehdieidi%2Foffliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehdieidi%2Foffliner/lists"}