I have a set of html documents on local disk to process. I need to load each document file as document object and run a piece of javascript code over it and store the result in a separate file. I would prefer to this from python though I'm open to any other suggestions too. I tried to do this through extensions in chrome and firefox but the browsers do not allow javascript to access files on disk. Is there a solution for this?
I tried python-spidermonkey but it allows only javascript execution. I doesn't seem to be able to load the html file as document object.