title: How to use python urllib to search in search box?
body: <p>I'm looking to use urllib to search in the search box of <a href="https://bigfuture.collegeboard.org" rel="nofollow noreferrer">https://bigfuture.collegeboard.org</a> </p>
  
  <p>Here's what I have but it's just giving me the homepage html:</p>
  
  <pre><code>import requests
  from urllib import urlopen
  from urllib import urlencode
  from bs4 import BeautifulSoup
  
  url = "https://bigfuture.collegeboard.org"
  data = urlencode({'q': 'financial analyst'})
  results = requests.post(url, data)
  soup = BeautifulSoup(results.content, 'html.parser').encode("ascii", "ignore")
  
  output = open('text.txt','w')
  output.write(soup)
  </code></pre>
  
  <p>How do I use and submit to the search box?</p>