title: How to submit a form
body: <p>I want to enter the web site <a href="https://paste.ubuntu.com/" rel="nofollow noreferrer">https://paste.ubuntu.com/</a> and send my data (my code) then I want to get back.</p>
  
  <p>I tried the code below but it didn't work.</p>
  
  <pre><code>import requests
  
  url = "http://duckduckgo.com/html"
  payload = {'q':'python'}
  r = requests.post(url, payload)
  with open("requests_results.html", "w") as f:
      f.write(r.content)
  </code></pre>
  
  <p>When I tried it, I just get a weird HTML form but not the data I want.</p>