{"id":22018167,"url":"https://github.com/rvflash/publicsuffix-sql","last_synced_at":"2026-04-13T23:33:47.452Z","repository":{"id":146848660,"uuid":"116393181","full_name":"rvflash/publicsuffix-sql","owner":"rvflash","description":"Mysql's functions to parse domain names based on the Public Suffix List.","archived":false,"fork":false,"pushed_at":"2018-01-05T14:34:49.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"stable","last_synced_at":"2025-03-23T09:35:14.764Z","etag":null,"topics":["mysql","mysql-functions","public-suffix-list"],"latest_commit_sha":null,"homepage":null,"language":null,"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/rvflash.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":"2018-01-05T14:26:17.000Z","updated_at":"2018-10-16T19:38:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"93206125-bacf-4bdd-88f8-284f30118d99","html_url":"https://github.com/rvflash/publicsuffix-sql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rvflash/publicsuffix-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fpublicsuffix-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fpublicsuffix-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fpublicsuffix-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fpublicsuffix-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvflash","download_url":"https://codeload.github.com/rvflash/publicsuffix-sql/tar.gz/refs/heads/stable","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fpublicsuffix-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31775945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["mysql","mysql-functions","public-suffix-list"],"created_at":"2024-11-30T05:10:17.281Z","updated_at":"2026-04-13T23:33:47.444Z","avatar_url":"https://github.com/rvflash.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Public Suffix for MySql\n\nMysql's functions to parse domain names based on the Public Suffix List.\n\n\n## Installation\n\n```bash\n$ git clone https://github.com/rvflash/publicsuffix-sql\n```\n\n\n## Testing\n\nGo into the source directory and starts the Docker.\n\n```bash\n$ cd publicsuffix-sql\n$ docker-compose up\n$ docker exec -ti $(docker ps -lq) bash\n```\n\nIn the new prompt, opens the MySql client: \n\n```bash\n$ mysql -h db -u root -ps3cr3tp4ssw0rd ps\n```\n\n\n## Features\n\n* The function named `hostname` extracts the hostname in a URL.\n* Function named `domain` returns the hostname without the sub-domain (ex: google.com.au).\n* The `sld` and `tld` functions returns respectively the second level domain (ex: com.au) and top level domain (ex: au). \n\n```\n\u003e select hostname(\"https://www.google.com.au/search?q=golang\");\n+-------------------------------------------------------+\n| hostname(\"https://www.google.com.au/search?q=golang\") |\n+-------------------------------------------------------+\n| www.google.com.au                                     |\n+-------------------------------------------------------+\n1 row in set (0.00 sec)\n\n\u003e select domain(\"https://www.google.com.au/\");\n+--------------------------------------+\n| domain(\"https://www.google.com.au/\") |\n+--------------------------------------+\n| google.com.au                        |\n+--------------------------------------+\n1 row in set (0.00 sec)\n\n\u003e select sld(domain(\"https://www.google.com.au/\"));\n+-------------------------------------------+\n| sld(domain(\"https://www.google.com.au/\")) |\n+-------------------------------------------+\n| com.au                                    |\n+-------------------------------------------+\n1 row in set (0.00 sec)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Fpublicsuffix-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvflash%2Fpublicsuffix-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Fpublicsuffix-sql/lists"}