Skip to content

Instantly share code, notes, and snippets.

@craked5
Created August 14, 2015 17:13
Show Gist options
  • Save craked5/816aafddb28236be2855 to your computer and use it in GitHub Desktop.
Save craked5/816aafddb28236be2855 to your computer and use it in GitHub Desktop.
testinditem
def trystuff():
status = 0
i=0
while i < 100:
if status == 0:
temp = requests.get('http://steamcommunity.com/market/listings/730/Tec-9%20%7C%20Urban%20DDPAT%20(Field-Tested)')
print 'html ' + str(temp.status_code)
status = 1
i +=1
time.sleep(0.3)
elif status == 1:
temp = requests.get('http://steamcommunity.com/market/listings/730/Tec-9%20%7C%20Urban%20DDPAT%20(Field-Tested)/render/?currency=3&start=134')
print 'render ' + str(temp.status_code)
status = 0
i+=1
time.sleep(0.3)
trystuff()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment