For e.g. If you want to get all the group id present in maven central repository.
https://repo1.maven.org/maven2/log4j/
#!/usr/bin/bash
URL="https://repo1.maven.org/maven2/log4j/"
wget -O - $URL | \
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | \
sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' >> hyperlink.lst
It will print all the hyperlink present in the webpage .
Output:
https://repo1.maven.org/maven2/log4j/apache-log4j-extras/
https://repo1.maven.org/maven2/log4j/log4j/
No comments:
Post a Comment
Thank You for your valuable comment