{"id":17093119,"url":"https://github.com/souvikinator/unwee","last_synced_at":"2025-04-12T22:46:08.973Z","repository":{"id":53781637,"uuid":"347388039","full_name":"souvikinator/unwee","owner":"souvikinator","description":"A simple URL un-shortener in golang","archived":false,"fork":false,"pushed_at":"2021-11-10T05:14:03.000Z","size":3791,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T22:45:42.573Z","etag":null,"topics":["cli","command-line-tool","golang","hacktoberfest","hacktoberfest-accepted","hacktoberfest2021","unwee","url-shortener","url-unshorten","url-unshortener"],"latest_commit_sha":null,"homepage":"","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/souvikinator.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":"2021-03-13T14:09:33.000Z","updated_at":"2023-02-03T21:03:10.000Z","dependencies_parsed_at":"2022-08-19T14:01:02.489Z","dependency_job_id":null,"html_url":"https://github.com/souvikinator/unwee","commit_stats":null,"previous_names":["darthcucumber/unwee"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Funwee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Funwee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Funwee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Funwee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souvikinator","download_url":"https://codeload.github.com/souvikinator/unwee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643046,"owners_count":21138353,"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":["cli","command-line-tool","golang","hacktoberfest","hacktoberfest-accepted","hacktoberfest2021","unwee","url-shortener","url-unshorten","url-unshortener"],"created_at":"2024-10-14T14:04:44.735Z","updated_at":"2025-04-12T22:46:08.941Z","avatar_url":"https://github.com/souvikinator.png","language":"Go","readme":"# unwee\r\n\r\nA simple tool written in `go` to unshorten short urls.\r\nTakes bunch of URLs and returns the unshortened URLs\r\n\r\n## TODO:\r\n\r\n- [ ] Code Cleanup 😓 \r\n- [x] Proper flags for URL inputs (currently only takes input from STDIN)\r\n- [x] Flag for output files to store the results\r\n- [x] Support for output format(in JSON, currently supports TXT)\r\n- [ ] `-ex` (exclude) flag to not include unreachable/invalid URLs in the output file\r\n\r\nmore freatures if possible?\r\n\r\n## Installation\r\n\r\n```bash\r\ngo install github.com/DarthCucumber/unwee@latest\r\n```\r\n\r\n## Usage\r\n\r\n```\r\n _  _ _ ___ __ _____ ___ \r\n| || | ' \\ V  V / -_) -_)\r\n \\_,_|_||_\\_/\\_/\\___\\___| v1.1.0\r\n \r\nusage: unwee [options...]\r\n\r\noptions: \r\n\r\n[-u] (url) takes in single URL as input and gives it's unshortened form.\r\n[-o] (output) takes in file name as input and saves result in the file\r\n[-f] (file) takes in file name containing list of shortened URLs\r\n[-h] (help) prints help menu\r\n\r\nExample:\r\n\r\n- Single URL Input from stdin:\r\n\t\u003e echo \"http://shorturl/xyz\" | go run main.go\r\n- Input single url\r\n\t\u003e go run main.go -u http://shorturl/xyz\r\n- URL List file Input from stdin\r\n\t\u003e cat url_list.txt | go run main.go \r\n- Input from file\r\n\t\u003e go run main.go -f url_list.txt\r\n- Setting output file to save results (default is saved at \"output/\u003cdata_time\u003e.txt\")\r\n\t\u003e go run main.go -o outputfile.txaer\r\n```\r\n\r\n### note\r\nThere is a sample txt file in the repo with some shortened URLs in it for testing. So go ahead give it a try.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvikinator%2Funwee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouvikinator%2Funwee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvikinator%2Funwee/lists"}