eunbeek / findbrokenglass Goto Github PK
View Code? Open in Web Editor NEWthis tool looks for broken url in a input file.
License: MIT License
this tool looks for broken url in a input file.
License: MIT License
It will return how many bad URLs are in the file.
If all URLs are good, it will return 0.
Otherwise, the exit code is over 0.
When running the tool with the v or version argument, the tool should print the name of the tool and its version.
on PowerShell, it prompts issue when typing "UrlCheck "
UrlCheck : The term 'UrlCheck' is not recognized as the name of a cmdlet, function, script file, or operable program.
The URLs will return JSON format output like below.
[{"url":"http://example.com","status":200}]
The following shall be met :
The --ignore, -i, \i flag is optional, and if present should take a filepath and use it to load and parse an ignored URLs text file. If the ignore file isn't found, give an appropriate error message. Otherwise, all URLs should be checked against this list to see if they need to be ignored.
Here are some example ignore files.
First, a file with only a comment is valid:
/1. Empty file, nothing will be ignored
Second, a file with multiple comments and a URL is valid:
/ 2. File with a comment and single URL that matches any URL
/that starts with https://www.google.com, for example:
/https://www.google.com/index.html would match
/https://www.google.com/ would match
/ https://www.google.ca would NOT match
https://www.google.com
Third, a file that has no comments and only URLs is valid:
https://www.google.com
Fourth, a file with anything other than a comment (#) or URL (http://, https://) is invalid:
/ This is invalid. It doesn't use http:// or https://
www.google.com
If the file isn't valid, give an appropriate error message and exit. Otherwise, use the file's URL patterns to test all the URLs being processed, skipping any that match.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.