{"id":37122412,"url":"https://github.com/killianmeersman/wander","last_synced_at":"2026-01-14T14:09:04.620Z","repository":{"id":57509263,"uuid":"188071703","full_name":"KillianMeersman/wander","owner":"KillianMeersman","description":"Convenient scraping library for Gophers","archived":false,"fork":false,"pushed_at":"2021-06-08T20:14:58.000Z","size":1701,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2024-06-21T09:51:10.585Z","etag":null,"topics":["crawler","data-mining","golang","scraper","spider"],"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/KillianMeersman.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":"2019-05-22T16:02:22.000Z","updated_at":"2021-06-08T20:15:01.000Z","dependencies_parsed_at":"2022-08-30T07:11:04.427Z","dependency_job_id":null,"html_url":"https://github.com/KillianMeersman/wander","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/KillianMeersman/wander","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillianMeersman%2Fwander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillianMeersman%2Fwander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillianMeersman%2Fwander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillianMeersman%2Fwander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KillianMeersman","download_url":"https://codeload.github.com/KillianMeersman/wander/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillianMeersman%2Fwander/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["crawler","data-mining","golang","scraper","spider"],"created_at":"2026-01-14T14:09:03.902Z","updated_at":"2026-01-14T14:09:04.609Z","avatar_url":"https://github.com/KillianMeersman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wander\n\n## Overview\n\nConvenient scraping library for Gophers.\n\nBased on Colly and Scrapy, Wander aims to provide an easy-to-use API while also exposing the tools for advanced use cases.\n\n## Features\n\n- Prioritized request queueing.\n- Redis support for distributed scraping.\n- Easy parallelization of crawlers and pipelines.\n- Stop, save and resume crawls.\n- Global and per-domain throttling.\n- Proxy switching.\n- Support for robots.txt, including non-standard directives and custom filter functions (e.a. ignore certain rules).\n- Sitemap support\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/PuerkitoBio/goquery\"\n\n\t\"github.com/KillianMeersman/wander\"\n\t\"github.com/KillianMeersman/wander/limits\"\n\t\"github.com/KillianMeersman/wander/request\"\n)\n\nfunc main() {\n\tspid, _ := wander.NewSpider(\n\t\twander.AllowedDomains(\"localhost:8080\"),\n\t\twander.MaxDepth(10),\n\t\twander.Throttle(limits.NewDefaultThrottle(200*time.Millisecond)),\n\t\twander.Threads(2),\n\t)\n\n\tspid.OnRequest(func(req *request.Request) *request.Request {\n\t\tlog.Printf(\"visiting %s\", req.URL.String())\n\t\treturn req\n\t})\n\n\tspid.OnResponse(func(res *request.Response) {\n\t\tlog.Printf(\"response from %s\", res.Request.URL.String())\n\t})\n\n\tspid.OnError(func(err error) {\n\t\tlog.Fatal(err)\n\t})\n\n\tspid.OnHTML(\"a[href]\", func(res *request.Response, el *goquery.Selection) {\n\t\tlink, _ := el.Attr(\"href\")\n\t\turl, err := url.Parse(link)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\tif err := spid.Follow(url, res, 10-res.Request.Depth); err != nil {\n\t\t\tlog.Printf(err.Error())\n\t\t}\n\t})\n\n\troot := \u0026url.URL{\n\t\tScheme: \"http\",\n\t\tHost:   \"localhost:8080\",\n\t}\n\tspid.Visit(root)\n\n\t// Get sitemap\n\trobotsURL := root\n\trobotsURL.Path = \"/robots.txt\"\n\trobots, err := robots.NewRobotFileFromURL(robotsURL, spid)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tsitemap, err := robots.GetSitemap(\"wander\", spid)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlocations, err := sitemap.GetLocations(spid, 10000)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfor _, location := range locations {\n\t\turl, err := url.Parse(location.Loc)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tspid.Visit(url)\n\t}\n\n\tgo func() {\n\t\t\u003c-time.After(5 * time.Second)\n\t\tspid.Stop(context.Background())\n\t}()\n\n\tspid.Start()\n\tspid.Wait()\n```\n\n## Installation\n\n`go get -u github.com/KillianMeersman/wander`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillianmeersman%2Fwander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillianmeersman%2Fwander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillianmeersman%2Fwander/lists"}