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

Several bugs and enhancements #40

Open
HolyBugx opened this issue Aug 9, 2021 · 1 comment
Open

Several bugs and enhancements #40

HolyBugx opened this issue Aug 9, 2021 · 1 comment

Comments

@HolyBugx
Copy link

HolyBugx commented Aug 9, 2021

Hello there,

In the latest version, there are several bugs from which one of the most annoying ones is that -q flag is not quite working as intended. here is an example output:

[aws-s3] - github-cloud.s3.amazonaws.com
[url] - [code-200] - https://github.githubassets.com/assets/gist-5b974504.js
[url] - [code-200] - https://github.githubassets.com/assets/behaviors-3afe1224.js

Another issue I'm getting is that the JSON output results in an error combined with jq.

$ gospider -s https://github.com -q --json | jq

...
parse error: Invalid numeric literal at line 291, column 5

Another suggestion is that to provide a scheme-less URL support:

$ gospider -s github.com 

above command doesn't work now, and only by using HTTP scheme it works:

$ gospider -s https://github.com

Regards,
HolyBugx

@ocervell
Copy link

ocervell commented Feb 3, 2023

The fix is quite simple (I might make a PR later on), in order to be compatible with jq or other json lines parsing tools, we need to write all non-JSON output to stderr:

fmt.Fprintf(os.Stderr, bannerPart1)

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