Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[$1 =~ www.umei.cc]]
- then
- dlImagesTypeOne $1
- fi
- function dlImagesTypeOne {
- firstPage=$1
- firstPageData=$(curl $firstPage)
- fullData=$firstPageData
- pagnationTypeOne "$firstPage" "$firstPageData"
- pagnation=$return
- for i in pagnation
- do
- fullData=`echo "fullData";curl $i`
- done
- extractImageUrlsTypeOne "$firstPage" "$fullData"
- imageUrls=$return
- extractTitleTypeOne "$firstPageData"
- title=$return
- generateHtml "$title" "$imageUrls" "imageOnly"
- }
- curl $1 | sed 's/</\n</g' | sed 's/>/>\n/g' | grep "href=/pic" | awk -F\? '{print $2}' | awk -F\& '{print $1}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement