Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/souvikinator/unwee
A simple URL un-shortener in golang
https://github.com/souvikinator/unwee
cli command-line-tool golang hacktoberfest hacktoberfest-accepted hacktoberfest2021 unwee url-shortener url-unshorten url-unshortener
Last synced: 3 months ago
JSON representation
A simple URL un-shortener in golang
- Host: GitHub
- URL: https://github.com/souvikinator/unwee
- Owner: souvikinator
- License: mit
- Created: 2021-03-13T14:09:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-10T05:14:03.000Z (about 3 years ago)
- Last Synced: 2024-05-01T18:13:33.350Z (8 months ago)
- Topics: cli, command-line-tool, golang, hacktoberfest, hacktoberfest-accepted, hacktoberfest2021, unwee, url-shortener, url-unshorten, url-unshortener
- Language: Go
- Homepage:
- Size: 3.62 MB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unwee
A simple tool written in `go` to unshorten short urls.
Takes bunch of URLs and returns the unshortened URLs## TODO:
- [ ] Code Cleanup 😓
- [x] Proper flags for URL inputs (currently only takes input from STDIN)
- [x] Flag for output files to store the results
- [x] Support for output format(in JSON, currently supports TXT)
- [ ] `-ex` (exclude) flag to not include unreachable/invalid URLs in the output filemore freatures if possible?
## Installation
```bash
go install github.com/DarthCucumber/unwee@latest
```## Usage
```
_ _ _ ___ __ _____ ___
| || | ' \ V V / -_) -_)
\_,_|_||_\_/\_/\___\___| v1.1.0
usage: unwee [options...]options:
[-u] (url) takes in single URL as input and gives it's unshortened form.
[-o] (output) takes in file name as input and saves result in the file
[-f] (file) takes in file name containing list of shortened URLs
[-h] (help) prints help menuExample:
- Single URL Input from stdin:
> echo "http://shorturl/xyz" | go run main.go
- Input single url
> go run main.go -u http://shorturl/xyz
- URL List file Input from stdin
> cat url_list.txt | go run main.go
- Input from file
> go run main.go -f url_list.txt
- Setting output file to save results (default is saved at "output/.txt")
> go run main.go -o outputfile.txaer
```### note
There is a sample txt file in the repo with some shortened URLs in it for testing. So go ahead give it a try.