title: Proxies with Python 'Requests' module
body: <p>Just a short, simple one about the excellent <a href="https://requests.readthedocs.io/en/latest/" rel="noreferrer">Requests</a> module for Python.</p>
  <p>I can't seem to find in the documentation what the variable 'proxies' should contain. When I send it a dict with a standard &quot;IP:PORT&quot; value it rejected it asking for 2 values.
  So, I guess (because this doesn't seem to be covered in the docs) that the first value is the ip and the second the port?</p>
  <p>The docs mention this only:</p>
  <blockquote>
  <p>proxies – (optional) Dictionary mapping protocol to the URL of the proxy.</p>
  </blockquote>
  <p>So I tried this... what should I be doing?</p>
  <pre><code>proxy = { ip: port}
  </code></pre>
  <p>and should I convert these to some type before putting them in the dict?</p>
  <pre><code>r = requests.get(url,headers=headers,proxies=proxy)
  </code></pre>