https://github.com/tomnomnom/burl
A Broken-URL Checker
https://github.com/tomnomnom/burl
Last synced: 24 days ago
JSON representation
A Broken-URL Checker
- Host: GitHub
- URL: https://github.com/tomnomnom/burl
- Owner: tomnomnom
- Created: 2017-10-27T10:41:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T12:07:24.000Z (over 7 years ago)
- Last Synced: 2025-03-01T12:43:41.743Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 79
- Watchers: 8
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- WebHackersWeapons - burl - URL Checker ||[`url`](/categorize/tags/url.md)|[](/categorize/langs/Go.md)| (Weapons / Tools)
README
# burl
A broken-URL checker.
Work in progress. Not even alpha quality.
## Install
```
▶ go get github.com/tomnomnom/burl
```## Usage
Given some URLs in a file:
```
▶ cat urls
http://example.com/
http://example.com/notafile.js
http://pleasedontregisterthisdomain.com/js/main.js
An invalid URL
https://wat/foo.js
https://example.net
https://notarealsubdomain.example.com/
```Either feed them into `burl` on stdin:
```
▶ cat urls | burl
non-200 response code: http://example.com/notafile.js (404 Not Found)
does not resolve: http://pleasedontregisterthisdomain.com/js/main.js
invalid url: An invalid URL
does not resolve: https://wat/foo.js
does not resolve: https://notarealsubdomain.example.com/
```Or pass the filename as the first argument:
```
▶ burl urls
non-200 response code: http://example.com/notafile.js (404 Not Found)
does not resolve: http://pleasedontregisterthisdomain.com/js/main.js
invalid url: An invalid URL
does not resolve: https://wat/foo.js
does not resolve: https://notarealsubdomain.example.com/
```