Advertisement
Rallias

Untitled

Nov 7th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[$1 =~ www.umei.cc]]
  4. then
  5. dlImagesTypeOne $1
  6. fi
  7.  
  8. function dlImagesTypeOne {
  9. firstPage=$1
  10. firstPageData=$(curl $firstPage)
  11. fullData=$firstPageData
  12.  
  13. pagnationTypeOne "$firstPage" "$firstPageData"
  14. pagnation=$return
  15.  
  16. for i in pagnation
  17. do
  18. fullData=`echo "fullData";curl $i`
  19. done
  20.  
  21. extractImageUrlsTypeOne "$firstPage" "$fullData"
  22. imageUrls=$return
  23.  
  24. extractTitleTypeOne "$firstPageData"
  25. title=$return
  26.  
  27. generateHtml "$title" "$imageUrls" "imageOnly"
  28. }
  29.  
  30. 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