{"id":13832047,"url":"https://github.com/cornelk/goscrape","last_synced_at":"2025-04-10T01:09:16.814Z","repository":{"id":17420866,"uuid":"81788327","full_name":"cornelk/goscrape","owner":"cornelk","description":"Web scraper that can create an offline readable version of a website","archived":false,"fork":false,"pushed_at":"2025-03-06T17:03:48.000Z","size":3803,"stargazers_count":204,"open_issues_count":7,"forks_count":41,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-10T01:09:11.165Z","etag":null,"topics":["go","golang","scraper","webscraping"],"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/cornelk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-02-13T05:29:45.000Z","updated_at":"2025-04-07T04:56:06.000Z","dependencies_parsed_at":"2024-01-15T15:46:06.074Z","dependency_job_id":"e00ca188-f36f-44d9-b25f-d40dd17cd3d5","html_url":"https://github.com/cornelk/goscrape","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Fgoscrape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Fgoscrape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Fgoscrape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Fgoscrape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornelk","download_url":"https://codeload.github.com/cornelk/goscrape/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137886,"owners_count":21053775,"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":["go","golang","scraper","webscraping"],"created_at":"2024-08-04T10:01:49.274Z","updated_at":"2025-04-10T01:09:16.795Z","avatar_url":"https://github.com/cornelk.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# goscrape - create offline browsable copies of websites\n\n[![Build status](https://github.com/cornelk/goscrape/actions/workflows/go.yaml/badge.svg?branch=main)](https://github.com/cornelk/goscrape/actions)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/cornelk/goscrape)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cornelk/goscrape)](https://goreportcard.com/report/github.com/cornelk/goscrape)\n[![codecov](https://codecov.io/gh/cornelk/goscrape/branch/main/graph/badge.svg?token=NS5UY28V3A)](https://codecov.io/gh/cornelk/goscrape)\n\nA web scraper built with Golang. It downloads the content of a website and allows it to be archived and read offline.\n\n## Features\n\nFeatures and advantages over existing tools like wget, httrack, Teleport Pro:\n\n* Free and open source\n* Available for all platforms that Golang supports\n* JPEG and PNG images can be converted down in quality to save disk space\n* Excluded URLS will not be fetched (unlike [wget](https://savannah.gnu.org/bugs/?20808))\n* No incomplete temp files are left on disk\n* Downloaded asset files are skipped in a new scraper run\n* Assets from external domains are downloaded automatically\n* Sane default values\n\n## Limitations\n\n* No GUI version, console only\n\n## Installation\n\nThere are 2 options to install goscrape:\n\n1. Download and unpack a binary release from [Releases](https://github.com/cornelk/goscrape/releases)\n\nor\n\n2. Compile the latest release from source:\n\n```\ngo install github.com/cornelk/goscrape@latest\n```\n\nCompiling the tool from source code needs to have a recent version of [Golang](https://go.dev/) installed.\n\n## Usage\n\nScrape a website by running\n```\ngoscrape http://website.com\n```\n\nTo serve the downloaded website directory in a local run webserver use\n```\ngoscrape --serve website.com\n```\n\n## Options\n\n```\nScrape a website and create an offline browsable version on the disk.\n\nUsage: goscrape [--include INCLUDE] [--exclude EXCLUDE] [--output OUTPUT] [--depth DEPTH] [--imagequality IMAGEQUALITY] [--timeout TIMEOUT] [--serve SERVE] [--serverport SERVERPORT] [--cookiefile COOKIEFILE] [--savecookiefile SAVECOOKIEFILE] [--header HEADER] [--proxy PROXY] [--user USER] [--useragent USERAGENT] [--verbose] [URLS [URLS ...]]\n\nPositional arguments:\n  URLS\n\nOptions:\n  --include INCLUDE, -n INCLUDE\n                         only include URLs with PERL Regular Expressions support\n  --exclude EXCLUDE, -x EXCLUDE\n                         exclude URLs with PERL Regular Expressions support\n  --output OUTPUT, -o OUTPUT\n                         output directory to write files to\n  --depth DEPTH, -d DEPTH\n                         download depth, 0 for unlimited [default: 10]\n  --imagequality IMAGEQUALITY, -i IMAGEQUALITY\n                         image quality, 0 to disable reencoding\n  --timeout TIMEOUT, -t TIMEOUT\n                         time limit in seconds for each HTTP request to connect and read the request body\n  --serve SERVE, -s SERVE\n                         serve the website using a webserver\n  --serverport SERVERPORT, -r SERVERPORT\n                         port to use for the webserver [default: 8080]\n  --cookiefile COOKIEFILE, -c COOKIEFILE\n                         file containing the cookie content\n  --savecookiefile SAVECOOKIEFILE\n                         file to save the cookie content\n  --header HEADER, -h HEADER\n                         HTTP header to use for scraping\n  --proxy PROXY, -p PROXY\n                         HTTP proxy to use for scraping\n  --user USER, -u USER   user[:password] to use for HTTP authentication\n  --useragent USERAGENT, -a USERAGENT\n                         user agent to use for scraping\n  --verbose, -v          verbose output\n  --help, -h             display this help and exit\n  --version              display version and exit\n```\n\n## Cookies\n\nCookies can be passed in a file using the `--cookiefile` parameter and a file containing\ncookies in the following format:\n\n```\n[{\"name\":\"user\",\"value\":\"123\"},{\"name\":\"sessioe\",\"value\":\"sid\"}]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornelk%2Fgoscrape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornelk%2Fgoscrape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornelk%2Fgoscrape/lists"}