Fill out javascript with python?
<p>I am trying to parse an html page but I need to filter the results before I parse the page.</p>

<p>For instance, 'http://www.ksl.com/index.php?nid=443' is a classified listing of cars in Utah. Instead of parsing ALL the cars, I'd like to filter it first (ie find all BMWs) and then only parse those pages. Is it possible to fill in a javascript form with python?</p>

<p>Here's what I have so far:</p>

<pre><code>import urllib

content = urllib.urlopen('http://www.ksl.com/index.php?nid=443').read()
f = open('/var/www/bmw.html',"w")
f.write(content)
f.close()
</code></pre>
