Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python
- import os
- import time
- curlstr = "curl 'https://www.reddit.com/api/place/draw.json' -H 'Host: www.reddit.com' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'DNT: 1' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'X-Modhash: YOURSINPLACE' -H 'X-Requested-With: XMLHttpRequest' -H 'YOURSINPLACE' -H 'Cookie: loid=YOURSINPLACE; loidcreated=; _recent_srs=YOURSINPLACE; AI221_recent_srs=YOURSINPLACE; block_personalized=true; aa=1; edgebucket=YOURSINPLACE; pc=z5; reddit_session=YOURSINPLACE; secure_session=1; Sabiroid_recent_srs=YOURSINPLACE' -H 'Connection: keep-alive' --data '" #i recommend doing a completely new curl through the network manager in ff. must remove the --2.0 arg.
- #Please change this. Don't be mean to purple.
- strtposx = 0
- strtposy = 0
- while True:
- y =0
- with open("img") as f:
- print("st")
- for line in f:
- print("st1 "+str(len(line)))
- x = 0
- for c in line:
- if (c=='a'):
- c = "10"
- if ( x+1 < len(line)):
- print("st2")
- g = (curlstr+"x="+str(strtposx+x)+"&y="+str(strtposy+y)+"&color="+c+"'")
- print(g)
- os.system(g)
- time.sleep(630)
- x = x+1
- y = y+1
- os.system("echo completed1 >> list")
Add Comment
Please, Sign In to add comment