{"id":23129030,"url":"https://github.com/twiny/wbot","last_synced_at":"2025-08-27T03:16:58.443Z","repository":{"id":37249188,"uuid":"490662975","full_name":"twiny/wbot","owner":"twiny","description":"A simple \u0026 efficient web crawler.","archived":false,"fork":false,"pushed_at":"2024-02-18T15:01:29.000Z","size":60,"stargazers_count":17,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T05:06:00.375Z","etag":null,"topics":["big-data","crawler","golang","scraper","seo","spider"],"latest_commit_sha":null,"homepage":"https://github.com/twiny/wbot/wiki","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/twiny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-10T11:15:36.000Z","updated_at":"2025-03-27T18:38:55.000Z","dependencies_parsed_at":"2024-06-19T04:00:37.249Z","dependency_job_id":"37e13b6d-2520-43fb-86e5-4a75f8dc1d98","html_url":"https://github.com/twiny/wbot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/twiny/wbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fwbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fwbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fwbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fwbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twiny","download_url":"https://codeload.github.com/twiny/wbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fwbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272284262,"owners_count":24906851,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["big-data","crawler","golang","scraper","seo","spider"],"created_at":"2024-12-17T10:08:08.360Z","updated_at":"2025-08-27T03:16:58.423Z","avatar_url":"https://github.com/twiny.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WBot\n\nA configurable, thread-safe web crawler, provides a minimal interface for crawling and downloading web pages.\n\n## Features\n\n- Clean minimal API.\n- Configurable: MaxDepth, MaxBodySize, Rate Limit, Parrallelism,  User Agent \u0026 Proxy rotation.\n- Memory-efficient, thread-safe.\n- Provides built-in interface: Fetcher, Store, Queue \u0026 a Logger.\n\n## API\n\nWBot provides a minimal API for crawling web pages.\n\n```go\n Run(links ...string) error\n OnReponse(fn func(*wbot.Response))\n Metrics() map[string]int64\n Shutdown()\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n \"fmt\"\n \"log\"\n\n \"github.com/rs/zerolog\"\n\n \"github.com/twiny/wbot\"\n \"github.com/twiny/wbot/pkg/api\"\n)\n\nfunc main() {\n bot := wbot.New(\n  wbot.WithParallel(50),\n  wbot.WithMaxDepth(5),\n  wbot.WithRateLimit(\u0026api.RateLimit{\n   Hostname: \"*\",\n   Rate:     \"10/1s\",\n  }),\n  wbot.WithLogLevel(zerolog.DebugLevel),\n )\n defer bot.Shutdown()\n\n // read responses\n bot.OnReponse(func(resp *api.Response) {\n  fmt.Printf(\"crawled: %s\\n\", resp.URL.String())\n })\n\n if err := bot.Run(\n  \"https://go.dev/\",\n ); err != nil {\n  log.Fatal(err)\n }\n\n log.Printf(\"finished crawling\\n\")\n}\n```\n\n### Wiki\n\nMore documentation can be found in the [wiki](https://github.com/twiny/wbot/wiki).\n\n### Bugs\n\nBugs or suggestions? Please visit the [issue tracker](https://github.com/twiny/wbot/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwiny%2Fwbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwiny%2Fwbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwiny%2Fwbot/lists"}