5bitesofcookies

Place Bot

Apr 1st, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.31 KB | None | 0 0
  1. #!/bin/python
  2. import os
  3. import time
  4. 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.
  5.  
  6. #Please change this. Don't be mean to purple.
  7.  
  8. strtposx = 0
  9. strtposy = 0
  10.  
  11.  
  12.  
  13. while True:
  14.     y =0
  15.     with open("img") as f:
  16.         print("st")
  17.         for line in f:
  18.             print("st1 "+str(len(line)))
  19.             x = 0
  20.        
  21.             for c in line:
  22.                 if (c=='a'):
  23.                     c = "10"
  24.                 if ( x+1 < len(line)):
  25.                     print("st2")
  26.                     g = (curlstr+"x="+str(strtposx+x)+"&y="+str(strtposy+y)+"&color="+c+"'")
  27.                     print(g)
  28.                     os.system(g)
  29.                     time.sleep(630)
  30.                 x = x+1
  31.             y = y+1
  32.     os.system("echo completed1 >> list")
Add Comment
Please, Sign In to add comment