Juno_okyo

Get Images Blogtruyen.com

Jun 14th, 2015
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.42 KB | None | 0 0
  1. #NoTrayIcon
  2. #include <string.au3>
  3.  
  4. Func getSource($url)
  5.     Return BinaryToString(InetRead($url), 4)
  6. EndFunc
  7.  
  8. Global $src = getSource('http://m.blogtruyen.com/truyen/naruto/chap-652')
  9. Global $tags = _StringBetween($src, '<div class="noidungchap">', '</div>')
  10. Global $imgs = StringRegExp($tags[0], '(?U)(?i)http://.+\.(jpg|png|gif)', 3)
  11. If Not @error Then
  12.     For $img In $imgs
  13.         ConsoleWrite($img & @CRLF)
  14.     Next
  15. EndIf
Add Comment
Please, Sign In to add comment