{"id":38666686,"url":"https://github.com/yangxuhui/urlp","last_synced_at":"2026-01-17T09:49:18.423Z","repository":{"id":57477338,"uuid":"209459882","full_name":"yangxuhui/urlp","owner":"yangxuhui","description":"A command line url parser, written in Python","archived":false,"fork":false,"pushed_at":"2019-10-14T12:26:07.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T18:23:44.329Z","etag":null,"topics":["command-line-tool","url-parser"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/yangxuhui.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":"2019-09-19T04:06:40.000Z","updated_at":"2023-09-08T17:58:09.000Z","dependencies_parsed_at":"2022-08-30T13:01:52.810Z","dependency_job_id":null,"html_url":"https://github.com/yangxuhui/urlp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yangxuhui/urlp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxuhui%2Furlp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxuhui%2Furlp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxuhui%2Furlp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxuhui%2Furlp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangxuhui","download_url":"https://codeload.github.com/yangxuhui/urlp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxuhui%2Furlp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["command-line-tool","url-parser"],"created_at":"2026-01-17T09:49:18.281Z","updated_at":"2026-01-17T09:49:18.407Z","avatar_url":"https://github.com/yangxuhui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# urlp\nA simple command-line utility for parsing URLs, written in Python. Inspired by [urlp](https://github.com/clayallsopp/urlp).\n\n```bash\n$ urlp --host \"http://www.cnn.com/service/alert.jsp?s=cnn\u0026v=a\"\nwww.cnn.com\n$ urlp --registered_domain \"http://www.cnn.com/service/alert.jsp?s=cnn\u0026v=a\"\ncnn.com\n$ urlp --path \"http://www.cnn.com/service/alert.jsp?s=cnn\u0026v=a\"\n/service/alert.jsp\n$ urlp --path -i 0 \"http://www.cnn.com/service/alert.jsp?s=cnn\u0026v=a\"\nservice\n$ urlp --query \"http://www.cnn.com/service/alert.jsp?s=cnn\u0026v=a\"\ns=cnn\u0026v=a\n$ urlp --query --query_field=s \"http://www.cnn.com/service/alert.jsp?s=cnn\u0026v=a\"\ncnn\n```\nurlp often works together with other unix command-line tools. For example:\n* Find all hosts in urls, sorted by count.\n```bash\ncat urlfile | urlp --host | sort | uniq -c | sort -nr -k1,1\n```\n* Find all url path words (separated by \"/\"), sorted by count.\n```bash\ncat urlfile | urlp --path | tr / \\\\n | awk '$1!=\"\"' | sort | uniq -c | sort -nr -k1,1\n```\n\n## Install\n```\npip install urlp\n```\n\n## Usage\n```\n$ urlp --help\nusage: urlp [-h] [--host] [-p] [-i path_index] [-q] [-k query_field] [-r]\n            [urls [urls ...]]\n\nA command line url parser\n\npositional arguments:\n  urls                  URLs to parse\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --host                hostname\n  -p, --path            Path\n  -i path_index, --path_index path_index\n                        filter parsed path by index\n  -q, --query           query string\n  -k query_field, --query_field query_field\n                        value for the specified query field\n  -r, --registered_domain\n                        registered domain\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangxuhui%2Furlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangxuhui%2Furlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangxuhui%2Furlp/lists"}