403 Forbidden: The server understood the request, but is refusing to fulfill it.

guybrushthreepwood

Regular Member
Joined
Oct 21, 2013
Messages
203
Reaction score
14
I wrote a selenium / python script that creates twitter accounts for me.

When it presses the submit button I get this error: "403 Forbidden: The server understood the request, but is refusing to fulfill it."

Waiting, chaning ip, clearing cookies et does not solve the problem.

Any idea how to ork around this?

thx ☺
 
403 error means forbidden, have you given it permission to execute? chmod +x file.py
 
That is odd. If you're using selenium then you should be posting exactly what the server is expecting. You're not bypassing the client side validation in anyway are you? Also I remember having to set the user agent to chrome when using phantomjs, not sure if I had to do anything like that with selenium.
 
Also are you using 100â„… different data each time? Eg different user name after a 403. Server might blacklist that username if it thinks its being automated
 
Did you find a solution for this. Same thing happens to me using the Twitter Intent URL with capserjs/slimerjs but everything else I do works fine.
 
I had this problem from time to time with my own script.
What I found while debugging is I missed sending something when posting data
check that you post a valid user-agent, a referer, all the fields found in the form (especially the authenticity token), the cookie
you must convince Twitter you use a normal browser
its 403 response means you didn't
 
Back
Top