fetch and extract (using curl) all http/https links in a page

This commit is contained in:
tcsenpai 2024-03-20 12:59:43 +01:00
parent 3c17c65a20
commit 396c482a4a

6
bin/gophereal Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
curl "$1" > dump_tmp_file
cat dump_tmp_file | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u > gophereal_links
rm -rf dump_tmp_file
cat gophereal_links