Skip to content

Instantly share code, notes, and snippets.

@3isenHeiM
Created March 1, 2021 12:53
Show Gist options
  • Save 3isenHeiM/891e64022ec90fa92d7d7fd1e616d452 to your computer and use it in GitHub Desktop.
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
#!/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