Advertisement
Guest User

Untitled

a guest
Feb 18th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.91 KB | None | 0 0
  1.         headers = """
  2.             Host: api.roblox.com
  3.             Connection: keep-alive
  4.             Content-Length: {}
  5.             Accept: application/json, text/plain, */*
  6.             Origin: https://www.roblox.com
  7.             User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
  8.             Content-Type: application/x-www-form-urlencoded
  9.             Referer: https://www.roblox.com/
  10.             Accept-Encoding: gzip, deflate, br
  11.             Accept-Language: en-US,en;q=0.8
  12.         """
  13.         data = "isEligibleForHideAdsAbTest=True&username={0.username}&password={0.password}&birthday=18+Dec+1941&gender={1}&context=RollerCoasterSignupForm"
  14.         data = data.format(self, random.randint(2, 3))
  15.         headers = headers.format(len(data))
  16.  
  17.         r = None
  18.  
  19.         try:
  20.             r = self.s.post(url = "https://api.roblox.com/signup/v1",
  21.                             data = data,
  22.                             headers = string_to_dict(headers),
  23.                             proxies = self.proxy,
  24.                             timeout = 20,
  25.                             verify = False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement