{"id":24344419,"url":"https://github.com/xtream1101/parser-api","last_synced_at":"2025-08-02T01:12:43.248Z","repository":{"id":81335016,"uuid":"90405704","full_name":"xtream1101/parser-api","owner":"xtream1101","description":"Api endpoints to parse various things","archived":false,"fork":false,"pushed_at":"2017-05-08T20:40:32.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T09:40:15.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/xtream1101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-05-05T18:33:26.000Z","updated_at":"2017-05-08T14:00:04.000Z","dependencies_parsed_at":"2023-07-10T09:45:15.661Z","dependency_job_id":null,"html_url":"https://github.com/xtream1101/parser-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fparser-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fparser-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fparser-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fparser-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtream1101","download_url":"https://codeload.github.com/xtream1101/parser-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243127425,"owners_count":20240620,"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":[],"created_at":"2025-01-18T09:36:16.515Z","updated_at":"2025-03-11T23:26:20.717Z","avatar_url":"https://github.com/xtream1101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Api for parsing things\n\n## Running\n`$ pip3 install -r requirements.txt`\n\n`$ gunicorn api:app`\n\n### URL\nParse a full url into its smallest parts\n\nEndpoint: `/parse/url?url={value}`\n\nExample:\n\nInput url: `https://user:pass@test.example.com:8080/foo/bar?arg1=a\u0026arg2=\u0026arg3=hi\u0026arg4\u0026arg3=hello#pg5`\n\nInput url after encoding (this gets passed as the arg): `https%3A%2F%2Fuser%3Apass%40test.example.com%3A8080%2Ffoo%2Fbar%3Farg1%3Da%26arg2%3D%26arg3%3Dhi%26arg4%26arg3%3Dhello%23pg5`\n\nResponse:\n```\n{\n  input: \"https://user:pass@test.example.com:8080/foo/bar?arg1=a\u0026arg2=\u0026arg3=hi\u0026arg4\u0026arg3=hello#pg5\",\n  valid_tld: true,\n  parts: {\n    protocol: \"https\",\n    username: \"user\",\n    password: \"pass\",\n    hash: \"#pg5\",\n    subdomains: [\n      \"test\"\n    ],\n    rootdomain: \"example\",\n    suffix: \"com\",\n    port: \"8080\",\n    endpoint: \"/foo/bar\",\n    args: {\n      arg1: \"a\",\n      arg2: \"\",\n      arg3: [\n      \"hi\",\n      \"hello\"\n      ],\n      arg4: \"\"\n    }\n  }\n}\n```\n* Currently only works with urls that have a valid tld (top level domain). TODO: Get to work with ip's and other hostnames i.e. localhost\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtream1101%2Fparser-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtream1101%2Fparser-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtream1101%2Fparser-api/lists"}