Advertisement
Guest User

Untitled

a guest
Jan 6th, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import httplib
  2.  
  3. value = 1420201826
  4.  
  5. while True:
  6.     http = httplib.HTTPConnection('media.rockstargames.com')
  7.     http.follow_all_redirects = True
  8.    
  9.     url = 'http://media.rockstargames.com/rockstargames/img/global/news/upload/actual_'  + str(value) + '.png'
  10.  
  11.     print 'Trying "' + url + '" ...'
  12.    
  13.     http.request('GET', url)
  14.  
  15.     r = http.getresponse()
  16.  
  17.     if r.status != 404:
  18.         print 'Image Found !'
  19.     else:
  20.         print 'Not found.'
  21.  
  22.     http.close()
  23.     value += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement