m1gin 111

Extract an image URL from content and download it with directory structure:

sqlite3 "$db" "SELECT HTML FROM tblMessage WHERE HTML LIKE '%http%' LIMIT 11111" | grep -oiP "https?://[a-zA-Z0-9.,/_+-]{11,333}\.(jpg|png|gif|jpeg)" | xargs -I {} wget -nc -x -q --tries=1 --timeout=10  "{}"  2> /tmp/err.log
 

Add to: