Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- name = raw_input('Enter a name: ')
- def getTime():
- _t = str(time.time()).replace('.','')
- while len(_t) < 13:
- _t = _t+'0'
- return _t
- urlCheck = 'http://the100meterscroll.com/Assets/Php/highscore.php?action=seePosition&nocache='+getTime()
- pdCheck = {
- 'score':'0001',
- 'kode':'65'
- }
- 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/'})
- print r.text
- urlSave = 'http://the100meterscroll.com/Assets/Php/highscore.php?action=saveScore&nocache='+getTime()
- pdSave = {
- 'name':name,
- 'score':'0001',
- 'kode':'65'
- }
- 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/'})
- print r.text.encode('ascii','ignore')[:200]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement