{"id":18155446,"url":"https://github.com/0x4f53/textsubs","last_synced_at":"2025-10-16T10:49:08.900Z","repository":{"id":251808514,"uuid":"838098085","full_name":"0x4f53/textsubs","owner":"0x4f53","description":"A simple Golang library to extract subdomains from any piece of text.","archived":false,"fork":false,"pushed_at":"2025-02-03T20:04:25.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T11:05:50.837Z","etag":null,"topics":["attack-surface-management","attacksurface","cybersecurity","golang","golang-library","golang-package","infosec","pentesting","subdomain-enumeration","subdomain-finder"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/0x4f53/textsubs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x4f53.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":"2024-08-04T23:40:03.000Z","updated_at":"2025-02-03T20:01:31.000Z","dependencies_parsed_at":"2024-08-10T13:55:09.814Z","dependency_job_id":"ab964873-ae0b-40ce-a0ad-7f82bce6d9f8","html_url":"https://github.com/0x4f53/textsubs","commit_stats":null,"previous_names":["0x4f53/textsubs"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4f53%2Ftextsubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4f53%2Ftextsubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4f53%2Ftextsubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4f53%2Ftextsubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x4f53","download_url":"https://codeload.github.com/0x4f53/textsubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247578579,"owners_count":20961268,"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":["attack-surface-management","attacksurface","cybersecurity","golang","golang-library","golang-package","infosec","pentesting","subdomain-enumeration","subdomain-finder"],"created_at":"2024-11-02T04:10:59.958Z","updated_at":"2025-10-16T10:49:03.853Z","avatar_url":"https://github.com/0x4f53.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/0x4f53/textsubs.svg)](https://pkg.go.dev/github.com/0x4f53/textsubs)\n\n# textsubs\n\nA simple Golang library to extract subdomains and domains from text (*not URLs!)\n\n### Usage\n1. Import this package in your go program\n```\ngo get github.com/0x4f53/textsubs\n```\n2. Use it in code as usual\n```\n...\nsubdomains := SubdomainsOnly(string(data), true)\n\nfor index, sub := subdomains {\n    // Rest of the code\n}\n...\n```\n\n### Documentation\n\nVisit https://pkg.go.dev/github.com/0x4f53/textsubs to read about the functions and their descriptions\n\n\n### Working\nThis package uses [publicsuffix2](https://github.com/weppos/publicsuffix-go), basic regex matching and a few if-else statements to determine if a string containing dots\nis a subdomain or not. Please note that certain strings like \"readme.md\" will be marked as valid subdomains due to\n_.md_ being a valid TLD.\n\n---\n\nCopyright (c) 2024  Owais Shaikh\n\nLicensed under [GNU GPL 3.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x4f53%2Ftextsubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x4f53%2Ftextsubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x4f53%2Ftextsubs/lists"}