{"id":37101518,"url":"https://github.com/ncodes/robotty","last_synced_at":"2026-01-14T12:19:36.763Z","repository":{"id":146095440,"uuid":"21473295","full_name":"ncodes/Robotty","owner":"ncodes","description":"Robots.txt parser for Go language","archived":false,"fork":false,"pushed_at":"2014-07-03T18:48:33.000Z","size":1832,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T23:54:29.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncodes.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}},"created_at":"2014-07-03T18:46:07.000Z","updated_at":"2014-07-03T18:48:33.000Z","dependencies_parsed_at":"2023-03-23T17:00:40.728Z","dependency_job_id":null,"html_url":"https://github.com/ncodes/Robotty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ncodes/Robotty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncodes%2FRobotty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncodes%2FRobotty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncodes%2FRobotty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncodes%2FRobotty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncodes","download_url":"https://codeload.github.com/ncodes/Robotty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncodes%2FRobotty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T12:19:36.068Z","updated_at":"2026-01-14T12:19:36.751Z","avatar_url":"https://github.com/ncodes.png","language":"Go","readme":"Robotty is a robots.txt parser for Go language\n--------------------------------------------------\n\nUsage:\n\nimport the package\n\n```\nimport \"robot\"\n```\n\n```go\n// parse a robots.txt string\ndecision := robot.FromString(\"User-agent: * \\n Disallow: /css/ \\n Disallow: /cgi-bin/\")\ndecision.IsAllowed(\"http://site.com/css\", \"*\")     // returns false\n\n// or parse a robots.txt http.Response\nresp, err := http.Get(\"http://google.com.ng/robots.txt\")\ndecision, _ := robot.FromResponse(resp)\ndecision.IsAllowed(\"http://google.com.ng/bleh/bleh\", \"*\")\n```\n\n\n- This library follows the exact matching pattern on this page https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt\n- It will first parse the first group that matches the user agent specified in Decision.IsAllowed and only fallback to the default group \"*\" if the specified user agent is not found\n- Only the first matching directive is accepted.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncodes%2Frobotty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncodes%2Frobotty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncodes%2Frobotty/lists"}