Executing js/ajax in a sandboxed environment

Miki Tebeka miki.tebeka at gmail.com
Mon Feb 28 22:25:00 EST 2011


> I was wondering if there is a way to execute js associated in
> page in sandbox environment before I start parsing it.
You can use http://code.google.com/p/python-spidermonkey/ or http://code.google.com/p/pyv8/ to evaluate JavaScript.

You can use any browser (including embedded htmlunit) using Selenium.

HTH
--
Miki Tebeka <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com



More information about the Python-list mailing list