Juno_okyo

Get image from 500px.com

Jan 7th, 2015
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.32 KB | None | 0 0
  1. #NoTrayIcon
  2. #include <INet.au3>
  3.  
  4. Func getIMG($url)
  5.     $html = _INetGetSource($url)
  6.     $data = StringRegExp($html, 'class="the_photo".+src="(.+?)"', 3)
  7.     If @error Then Return -1
  8.     return $data[0]
  9. EndFunc
  10.  
  11. $test = getIMG('https://500px.com/photo/50655470/sunset-silhouette-by-peter-emil-andersen')
  12. MsgBox(0, 'Image', $test)
Add Comment
Please, Sign In to add comment