Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to save only certain status page (404, 500, etc) #122

Open
vdkar opened this issue Dec 28, 2021 · 1 comment
Open

Add option to save only certain status page (404, 500, etc) #122

vdkar opened this issue Dec 28, 2021 · 1 comment

Comments

@vdkar
Copy link

vdkar commented Dec 28, 2021

And you can add a parameter so that, for example, only links with the 404 status are saved to the report, for example, to catch non-existing pages.

Thank you

@dantleech
Copy link
Owner

Fink doesn't really care about filtering results, as this can be done afterwards.

You can use a tool such a jq as detailed in the README:

cat report.json| jq -c '. | select(.status==404) | {url: .url, referrer: .referrer}' | jq

or if you want to do it in "realtime":

fink --stdout https://www.example.com | jq -c '. | select(.status==404) | {url: .url, referrer: .referrer}' | jq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants