Python 3.4 - Requests - Login issue
<p>I'm trying to use requests to login into a website using post. I have this form...</p>

<pre><code>&lt;form action="/" method="post" id="login_form" class="formposition" style="display: block;"&gt;
&lt;input type="text" name="btc_address" id="login_form_btc_address"&gt;
&lt;input type="password" name="password" id="login_form_password"&gt;
&lt;input type="submit" value="LOGIN!" id="login_button" class="button expand" style="margin:0;"&gt;
</code></pre>

<p>I wrote this code:</p>

<pre><code>import requests
url = "https://freebitco.in/?op=home"
values = { "btc_address": "username", "password": "password"}
r = requests.post(url, data=values)
</code></pre>

<p>However, when I run the code it doesn't work... can someone give me an advice?</p>