Created
November 17, 2017 11:01
-
-
Save mehulmpt/19234589131f99936463dcd9f322c2d7 to your computer and use it in GitHub Desktop.
Find your page number in Google's Hall of Fame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i=1 | |
name="Mehul" # CHANGE YOUR NAME HERE | |
while true | |
do | |
echo "Running $i" | |
content=$(wget https://bughunter.withgoogle.com/characterlist/$i -q -O -) | |
res=$(echo $content | grep -c $name) | |
if [ $res -eq 1 ]; then | |
echo "Found at page => $i" | |
break | |
fi | |
i=$(($i+1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is very slow, single threaded, and single request at a time implementation of finding contents on a webpage with bash. Feel free to contribute