Last active
November 1, 2016 22:09
-
-
Save Toyz/d72ad3f6a1c516ca1e2b05c6fc31b5ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import urllib2 | |
import json | |
import threading | |
def worker(): | |
orginal = -1 | |
while True: | |
req = urllib2.Request('https://lumerico.mx/api/') | |
req.add_header('Content-Type', 'application/json') | |
req.add_header('Cookie', 'lumerico=eyJpZCI6IjM1ZjE3N2I0LTkxNzgtNDdjMC1iMjUyLWU2ZDE5YjEzZmI1MSIsImF1dGhlbnRpY2F0ZWQiOnRydWUsInVzZXIiOnsidXNlcm5hbWUiOiJNSmltZW5leiIsInJvbGUiOiJhZG1pbiJ9LCJzdGVwIjo0LCJ1bmxvY2tlZCI6MX0=; lumerico.sig=SbPPOv_-NfOF1LK7NbHKfj2DZKo') | |
response = urllib2.urlopen(req, '{"method":"exec","step":4,"message":"Activation Code: ","params":["U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y96Qsv2Lm+31cmzaAILwytX/z66ZVWEQM/ccf1g+9m5Ubu1+sit+A9cenDxxqkIaxbm4cMeh2oKhqIHhdaBKOi6XX2XDWpa6+P5o9MQw=="]}') | |
content = json.loads(response.read()) | |
val = int(content["result"]["count"]) | |
diff = 0 | |
if orginal == -1: | |
orginal = val | |
else: | |
diff = val - orginal | |
orginal = val | |
print str(content["result"]["count"]) + " - " + str(diff) | |
#time.sleep(0.01) | |
threads = [] | |
for i in range(8): | |
t = threading.Thread(target=worker) | |
threads.append(t) | |
time.sleep(0.001) | |
t.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment