Advertisement
cigcag

the100meterscroll

Sep 17th, 2013
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. import requests
  2. import time
  3.  
  4. name = raw_input('Enter a name: ')
  5.  
  6. def getTime():
  7.     _t = str(time.time()).replace('.','')
  8.     while len(_t) < 13:
  9.         _t = _t+'0'
  10.     return _t
  11.  
  12. urlCheck = 'http://the100meterscroll.com/Assets/Php/highscore.php?action=seePosition&nocache='+getTime()
  13. pdCheck = {
  14.     'score':'0001',
  15.     'kode':'65'
  16. }
  17.  
  18. r = requests.post(urlCheck,data=pdCheck,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0','X-Requested-With':'XMLHttpRequest','Referer':'http://the100meterscroll.com/'})
  19. print r.text
  20.  
  21. urlSave = 'http://the100meterscroll.com/Assets/Php/highscore.php?action=saveScore&nocache='+getTime()
  22. pdSave = {
  23.     'name':name,
  24.     'score':'0001',
  25.     'kode':'65'
  26. }
  27.  
  28. r = requests.post(urlSave,data=pdSave,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0','X-Requested-With':'XMLHttpRequest','Referer':'http://the100meterscroll.com/'})
  29. print r.text.encode('ascii','ignore')[:200]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement