Say I have a script written in perl or python. What\'s the easiest way to write a function that would use jquery selectors on strings as part of it? i.e. to be able to do:
if i understand your question correctly you want is something like phantom.js. PhantomJS is a headless WebKit with JavaScript API. you can inject jquery into it and use all the jquery selectors to manipulate the dom. you can make it work like a standalone server aswell.