{"id":33174862,"url":"https://github.com/herloct/url-parser","last_synced_at":"2026-03-11T11:04:27.191Z","repository":{"id":57628630,"uuid":"97101785","full_name":"herloct/url-parser","owner":"herloct","description":"A command-line URL parser, written in Go","archived":false,"fork":false,"pushed_at":"2017-07-17T07:13:37.000Z","size":7,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T20:29:05.860Z","etag":null,"topics":["command-line-tool","go","golang","parser","url","url-parser"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/herloct.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}},"created_at":"2017-07-13T08:55:41.000Z","updated_at":"2022-10-03T14:48:01.000Z","dependencies_parsed_at":"2022-09-26T20:12:10.974Z","dependency_job_id":null,"html_url":"https://github.com/herloct/url-parser","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/herloct/url-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herloct%2Furl-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herloct%2Furl-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herloct%2Furl-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herloct%2Furl-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herloct","download_url":"https://codeload.github.com/herloct/url-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herloct%2Furl-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30379264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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","go","golang","parser","url","url-parser"],"created_at":"2025-11-16T02:00:34.328Z","updated_at":"2026-03-11T11:04:27.155Z","avatar_url":"https://github.com/herloct.png","language":"Go","readme":"# url-parser [![Build Status](https://travis-ci.org/herloct/url-parser.svg?branch=master)](https://travis-ci.org/herloct/url-parser) [![Build status](https://ci.appveyor.com/api/projects/status/x8ct5ewh1bi5l2og/branch/master?svg=true)](https://ci.appveyor.com/project/herloct/url-parser/branch/master)\n\nInspired by [urlp](https://github.com/clayallsopp/urlp), a simple command-line utility for parsing URLs.\n\nImplemented in Go, using standard library.\n\n```bash\n$ url-parser --part=host https://somedomain.com\nsomedomain.com\n\n$ url-parser --part=user https://herloct@somedomain.com\nherloct\n\n$ url-parser --part=path https://somedomain.com/path/to\n/path/to\n\n$ url-parser --part=path --path-index=1 https://somedomain.com/path/to\nto\n\n$ url-parser --part=query https://somedomain.com/?some-key=somevalue\nsome-key=somevalue\n\n$ url-parser --part=query --query-field=some-key https://somedomain.com/?some-key=somevalue\nsomevalue\n```\n\n## Instalation\n\nurl-parser is available for Linux and OS X, 64-bit only for now:\n\n```curl\ncurl -L https://github.com/herloct/url-parser/releases/download/1.0.0-beta4/url-parser-`uname -s`-x86_64 \u003e /usr/local/bin/url-parser; chmod +x /usr/local/bin/url-parser\n\n```\n\nFor Windows, you could download them here:\n\n```curl\nhttps://github.com/herloct/url-parser/releases/download/1.0.0-beta4/url-parser-Windows-x86_64.exe\n```\n\n## Usage\n\n```bash\n$ url-parser --help\nurl-parser\n  Parse URL and shows the part of it.\n\nUsage:\n  url-parser --part=PART \u003curl\u003e\n  url-parser --part=path [--path-index=INDEX] \u003curl\u003e\n  url-parser --part=query [--query-field=FIELD] \u003curl\u003e\n\nOptions:\n  --part=PART          Part of URL to show [default: all].\n                       Valid values: all, scheme, user, password,\n                       hostname, port, path, query, or fragment.\n  --path-index=INDEX   Filter parsed path by index.\n  --query-field=FIELD  Filter parsed query string by field name.\n```\n","funding_links":[],"categories":["Other"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherloct%2Furl-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherloct%2Furl-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherloct%2Furl-parser/lists"}