Python save captcha image from url? Error 401
<p>I have a problem to save captcha as png.
Here is my code so far</p>

<pre><code>import requests
url_login = "https://www.hackthis.co.uk/?login"
r_login = requests.post(url_login, {'username': 'darkcyber', 'password': 'secr3tp4s5'})
print r_login.status_code
if "Invalid login details" in r_login.text:
        print "Failed to login"
else:
        print "Login success"
url_captcha = "https://www.hackthis.co.uk/levels/extras/captcha1.php"
r_captcha = requests.get(url_captcha)
#print r_captcha.status_code &lt;&lt; 401 instead 200
#whats next?
</code></pre>