scrape.sh function complete