{"id":20327647,"url":"https://github.com/x-way/crawlerdetect","last_synced_at":"2025-04-09T14:11:20.274Z","repository":{"id":42857516,"uuid":"286257904","full_name":"x-way/crawlerdetect","owner":"x-way","description":"Golang module to detect bots and crawlers via the user agent","archived":false,"fork":false,"pushed_at":"2025-03-08T21:23:39.000Z","size":3809,"stargazers_count":61,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T16:21:27.670Z","etag":null,"topics":["bot-detection","crawler","crawler-detection","detect","go","spider","user-agent"],"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/x-way.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-09T14:54:07.000Z","updated_at":"2025-03-12T13:40:25.000Z","dependencies_parsed_at":"2024-06-18T21:20:13.953Z","dependency_job_id":"f6fdc78a-9036-47c8-9338-11bfc1a4bb60","html_url":"https://github.com/x-way/crawlerdetect","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fcrawlerdetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fcrawlerdetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fcrawlerdetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fcrawlerdetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-way","download_url":"https://codeload.github.com/x-way/crawlerdetect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054196,"owners_count":21039952,"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":["bot-detection","crawler","crawler-detection","detect","go","spider","user-agent"],"created_at":"2024-11-14T19:48:23.601Z","updated_at":"2025-04-09T14:11:20.235Z","avatar_url":"https://github.com/x-way.png","language":"Go","readme":"# crawlerdetect\n\n[![CircleCI](https://circleci.com/gh/x-way/crawlerdetect.svg?style=svg)](https://circleci.com/gh/x-way/crawlerdetect)\n[![Go Report Card](https://goreportcard.com/badge/github.com/x-way/crawlerdetect)](https://goreportcard.com/report/github.com/x-way/crawlerdetect)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/x-way/crawlerdetect)](https://pkg.go.dev/github.com/x-way/crawlerdetect)\n\n## About\n**crawlerdetect** is a Go version of PHP class @[CrawlerDetect](https://github.com/JayBizzle/Crawler-Detect). \n\nIt helps to detect bots/crawlers/spiders via the user agent and other HTTP-headers. Currently able to detect 1,000's of bots/spiders/crawlers.\n\n## Installation\n\n`go get github.com/x-way/crawlerdetect`\n\n## Basic Usage\n```\nimport \"fmt\"\nimport \"github.com/x-way/crawlerdetect\"\n\nfunc main() {\n    uastring := \"curl/7.54.0\"\n    if crawlerdetect.IsCrawler(uastring) {\n        fmt.Println(\"Found a crawler\")\n    }\n}\n```\n\n## Contributing\nThe patterns and testcases are synced from the PHP repo.\nIf you find a bot/spider/crawler user agent that crawlerdetect fails to detect, please submit a pull request with the regex pattern and a testcase to the [upstream PHP repo](https://github.com/JayBizzle/Crawler-Detect).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-way%2Fcrawlerdetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-way%2Fcrawlerdetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-way%2Fcrawlerdetect/lists"}