{"id":15015398,"url":"https://github.com/gbxyz/p5-data-tranco","last_synced_at":"2026-02-02T02:04:07.556Z","repository":{"id":242670473,"uuid":"809802677","full_name":"gbxyz/p5-data-tranco","owner":"gbxyz","description":"An interface to the Tranco domain list.","archived":false,"fork":false,"pushed_at":"2024-10-29T09:51:57.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T21:39:20.060Z","etag":null,"topics":["perl","trancolist"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Data::Tranco","language":"Perl","has_issues":false,"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/gbxyz.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"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-06-03T13:30:47.000Z","updated_at":"2024-10-29T09:52:01.000Z","dependencies_parsed_at":"2024-06-04T10:57:43.036Z","dependency_job_id":"dfc4c849-f46d-4814-bcf2-151fe63b11c3","html_url":"https://github.com/gbxyz/p5-data-tranco","commit_stats":null,"previous_names":["gbxyz/p5-data-tranco"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gbxyz/p5-data-tranco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbxyz%2Fp5-data-tranco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbxyz%2Fp5-data-tranco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbxyz%2Fp5-data-tranco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbxyz%2Fp5-data-tranco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbxyz","download_url":"https://codeload.github.com/gbxyz/p5-data-tranco/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbxyz%2Fp5-data-tranco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29001527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"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":["perl","trancolist"],"created_at":"2024-09-24T19:47:23.030Z","updated_at":"2026-02-02T02:04:07.542Z","avatar_url":"https://github.com/gbxyz.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\n    use Data::Tranco;\n\n    # get a random domain from the list\n    $domain = Data::Tranco-\u003erandom_domain;\n\n    # get a random domain from the list with a specific suffix\n    $domain = Data::Tranco-\u003erandom_domain(\"org\");\n\n    # get the highest ranking domain\n    $domain = Data::Tranco-\u003etop_domain;\n\n    # get the highest ranking domain from the list with a specific suffix\n    $domain = Data::Tranco-\u003etop_domain(\"co.uk\");\n\n# DESCRIPTION\n\n[Data::Tranco](https://metacpan.org/pod/Data%3A%3ATranco) provides an interface to the [Tranco](https://tranco-list.eu)\nlist of popular domain names.\n\n# METHODS\n\n## RANDOM DOMAIN\n\n    $domain = Data::Tranco-\u003erandom_domain($suffix);\n\nReturns a randomly-selected domain from the list. If `$suffix` is specified,\nthen only a domain that ends with that suffix will be returned.\n\n## TOP DOMAIN\n\n    $domain = Data::Tranco-\u003etop_domain($suffix);\n\nReturns the highest-ranking domain from the list. If `$suffix` is specified,\nthen the highest-ranking domain that ends with that suffix will be returned.\n\n# IMPLEMENTATION\n\nThe Tranco list is published as a zip-compressed CSV file. By default,\n[Data::Tranco](https://metacpan.org/pod/Data%3A%3ATranco) will automatically download that file, extract the CSV file,\nand write it to an [SQLite](https://metacpan.org/pod/DBD%3A%3ASQLite) database if (a) the file doesn't exist\nyet or (b) it's more than a day old.\n\nIf you want to control this behaviour, you can use the following:\n\n## `$Data::Tranco::TTL`\n\nThis is how old the local file can be (in seconds) before it is updated. It is\n86400 seconds by default.\n\n## `$Data::Tranco::STATIC`\n\nIf you set this value to `1` then [Data::Tranco](https://metacpan.org/pod/Data%3A%3ATranco) will not update the database.\n\n## `Data::Tranco-\u003eupdate_db`\n\nThis will force an update to the database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbxyz%2Fp5-data-tranco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbxyz%2Fp5-data-tranco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbxyz%2Fp5-data-tranco/lists"}