Created
March 1, 2021 12:53
-
-
Save 3isenHeiM/891e64022ec90fa92d7d7fd1e616d452 to your computer and use it in GitHub Desktop.
This script will download the HIGH-RES pictures of listings from SailBoatlistings.com
This file contains hidden or 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
#!/bin/bash | |
rm *.html > /dev/null 2>&1 | |
# Enter the yachtworld page : | |
read -p "Paste the SailBoat Listings page: " WEBPAGE | |
# Extract the image links and wget them | |
wget -O web_page.html $WEBPAGE | |
# Extract the image links and wget them | |
cat web_page.html | grep "IMG" | grep -oP '"\K[^"\047]+(?=["\047])' | grep ".jpg" | awk '{print "https://www.sailboatlistings.com"$1}' | wget -i- | |
#rm index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment