gospider icon indicating copy to clipboard operation
gospider copied to clipboard

Output only URLs

Open raphaelsander opened this issue 2 years ago • 4 comments

Hi,

At first, congratulations for this project. I am have an issue, maybe by my mistake, but I'd want to send to stdout only URLs, without flags like [url] and [code-200]. Is it possible?

gospider

raphaelsander avatar Oct 15 '22 21:10 raphaelsander

2nd for this please :)

random-robbie avatar Nov 04 '22 10:11 random-robbie

It's a third from me. I've been getting this even when using the --json flag:

{"input":"https://twitter.com","source":"body","type":"form","output":"https://twitter.com/search/realtime?lang=zh-Hant","status":
0,"length":0}
{"input":"https://twitter.com","source":"body","type":"form","output":"https://twitter.com/search/realtime","status":0,"length":0}
{"input":"https://twitter.com","source":"body","type":"url","output":"https://twitter.com/?lang=sk","status":200,"length":151}
[url] - [code-200] - https://abs.twimg.com/responsive-web/client-web-legacy/main.6de340c9.js
{"input":"https://twitter.com","source":"body","type":"form","output":"https://twitter.com/*?lang=en-GB","status":0,"length":0}
{"input":"https://twitter.com","source":"body","type":"form","output":"https://twitter.com/*?lang=zh-Hant","status":0,"length":0}
{"input":"https://twitter.com","source":"body","type":"form","output":"https://twitter.com/*?ref_src=","status":0,"length":0}
{"input":"https://twitter.com","source":"body","type":"url","output":"https://twitter.com/?lang=pt","status":400,"length":83}
{"input":"https://twitter.com","source":"body","type":"url","output":"https://twitter.com/?lang=sv","status":200,"length":151}

Thanks!

lachokds avatar Nov 17 '22 22:11 lachokds

You can try to pipe them into grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*"

AncientAutumn avatar Dec 13 '22 05:12 AncientAutumn

I submitted this PR to fix this issue for both json and quiet flags: https://github.com/jaeles-project/gospider/pull/69

vrechson avatar Mar 08 '24 04:03 vrechson