{"id":24200301,"url":"https://github.com/joaooliveirapro/trawlergo","last_synced_at":"2026-06-09T15:01:27.702Z","repository":{"id":269980086,"uuid":"909036652","full_name":"joaooliveirapro/trawlergo","owner":"joaooliveirapro","description":"TrawlerGo 🐛 is a basic HTTP crawler written in Go, designed to efficiently discover all URLs within a specified domain while capturing related HTTP request information. ","archived":false,"fork":false,"pushed_at":"2025-02-25T13:34:56.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T09:31:44.109Z","etag":null,"topics":["crawler","go","golang","http"],"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/joaooliveirapro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-12-27T15:39:50.000Z","updated_at":"2025-02-25T13:34:59.000Z","dependencies_parsed_at":"2024-12-27T16:23:12.348Z","dependency_job_id":"47147c51-1707-407a-97f7-42fa4d19ba2d","html_url":"https://github.com/joaooliveirapro/trawlergo","commit_stats":null,"previous_names":["joaooliveirapro/trawlergo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/joaooliveirapro/trawlergo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaooliveirapro%2Ftrawlergo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaooliveirapro%2Ftrawlergo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaooliveirapro%2Ftrawlergo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaooliveirapro%2Ftrawlergo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaooliveirapro","download_url":"https://codeload.github.com/joaooliveirapro/trawlergo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaooliveirapro%2Ftrawlergo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34112225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["crawler","go","golang","http"],"created_at":"2025-01-13T20:41:53.514Z","updated_at":"2026-06-09T15:01:27.681Z","avatar_url":"https://github.com/joaooliveirapro.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trawlergo 🐛\nBasic HTTP crawler in Golang. Use this to find out all the URLs for given domain along with related information from the HTTP request.\n\n## Features\n- Regex match to include/exclude paths\n- Concurrency safe\n- HTTP Request information includes:\n    - Response status code\n    - Added count (how many new links fonund on page)\n\n## Install\n```sh\n$ go get github.com/joaooliveirapro/trawlergo # install\n$ go mod tidy                                 # clean up dependencies\n```\n\n## How to use\n```go\ntg := trawlergo.App{\n\tWorkers: 2,                                        // Number of Go routines \n\tMaxDepth:  1000,                                   // Max HTTP requests (safe stop)\n\tDomain:  \"www.mysite.com\",                         // To standardize relative URLs. Don't include the protocol\n\tStartingURLs:  []string{\"https://www.mysite.com/\"} // Starting URLs\n\tExcludeRegex:  []string{\"/no-go\", \"[\\d]\"}          // Don't include these paths\n\tIncludeRegex:  []string{\"/some-path-001\"}          // Include these paths\n}\ntg.Run()\ntg.SaveToJSON(\"data.json\")\n```\n\u003cdiv style=\"background-color: #fff3cd; border: 1px solid #ffecb5; padding: 10px;\"\u003e\nApp must have as many StartingURLs as Workers set to avoid premature exit of Workers. \n\u003c/div\u003e\n\n###\n```json\n// data.json\n[\n {\n  \"addedCount\": 3,\n  \"statusCode\": 200,\n  \"url\": \"https://crawler-test.com/mobile/separate_desktop_with_different_h1\"\n },\n {\n  \"addedCount\": 0,\n  \"statusCode\": 200,\n  \"url\": \"https://crawler-test.com/mobile/separate_desktop_with_different_links_in\"\n },\n ...\n]\n\n```\n\n### License\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaooliveirapro%2Ftrawlergo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaooliveirapro%2Ftrawlergo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaooliveirapro%2Ftrawlergo/lists"}