I want to make a command line account maker (in python). It shows you the ReCapatcha using PIL.Image.Image.show() and submits the request to google after you enter all the information.
I’ve never been very good at JavaScript or HTML, so I couldn’t make right or left of the code on the accounts.google.com/SignUp page.
What is the url I would submit the request to, and what request would it be? Thanks.
Like Code Monkey said, it’s impossible to achieve this using your current method. However, there may be another way. Instead of getting the user to fill in the data before querying the site, make your program behave like a normal web browser.
You could use the urllib.request module to open the account creation page and download the raw html.
From there, pick out the URL of the ReCAPTCHA image with regex.
You can then download the image from the URL and display it the user.
As for actually submitting the form, I suspect that you will need to set the
dataparameter ofurlopenwith the data the user provides and make a POST request to another URL, but I haven’t verified this.An addon for Firefox that I’ve found to be extremely helpful for this kind of stuff is Tamper Data. It allows you to see exactly what your browser is doing, including showing what the POST/GET requests look like, the URL’s you’re accessing, and other useful information.
Alternatively:
I should also add that I don’t condone violating Google’s TOS with mass account creation (for the purposes of spamming or otherwise). Google provides a great service. Please don’t abuse it.