title: How to run jquery commands on HTML in python for DOM actions/scraping?
body: <p>Lets say I'm using urllib2 and cookiejar (<a href="https://stackoverflow.com/a/2954448/496405">like so</a>) to get responses from websites. Now I'm looking for an easy way to use jQuery to essentially scrape data from the response returned from the webserver. </p>
  
  <p>I understand that there are other modules that can be used in python for web-scraping (<a href="https://stackoverflow.com/a/9552860/496405">like</a>), but is it possibly with just jQuery commands? I'm assuming I'd need some sort of js parser within python? </p>
  
  <p>The reason that I am wanting to use jQuery is that I have ~20 Greasemonkey scripts(mostly written by others) that do some interesting modifications to numerous web sites and web games. They do all of the DOM modifications with jQuery. Instead of completely refactoring most of this working and dependable code, I'd like to be able to simply port it to python (enabling simple and effective automation).</p>