Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This script will start drawing red.
- #Download and install python 2.7.13
- #Put this script in a file anywhere. Name it "anything.py"
- #Rightclick the file and select Run IDLE
- #Hit 5
- #Enter your accountname:password
- #Enter done when all accounts entered
- void_color = 5 # 3 black 5 Red 6 Orange 8 Yellow
- center = [17, 426] # x,y of center of void
- while True:
- # Fill the void
- for session in sessions.keys():
- cookie = sessions[session]
- color = 5
- counter = 5
- while color == void_color:
- cx=[ x for x in range(center[0]-counter,center[0]+counter) ]
- cy=[ x for x in range(center[1]-counter,center[1]+counter) ]
- checklist = []
- for x in cx:
- for y in cy:
- checklist.append((x,y))
- random.shuffle(checklist)
- for check in checklist:
- # Find a non-black square
- xtest = check[0]
- ytest = check[1]
- resp = opener.open("https://www.reddit.com/api/place/pixel.json?x="+str(xtest)+"&y="+str(ytest)).read()
- try:
- color = int(json.loads(resp)["color"])
- except Exception, e:
- print "Exception"
- print resp
- color = 5
- if color != void_color:
- break
- counter += 10
- print "Found a non-void color at", xtest, ytest
- print 'https://www.reddit.com/r/place/#x=%s&y=%s' % (xtest, ytest)
- finalresp = paint_black(xtest,ytest)
- if finalresp:
- if session in finalresp:
- print "Added successfully"
- else:
- print finalresp
- time.sleep(305)
Add Comment
Please, Sign In to add comment