0

Previously, I was working in Python using the Spynner module to macro through browsing specific webpages for me until I ran in to one page where Spynner could not correctly run the javascript on the website. I was unable to find another Python module that supported Javascript in a browser, so I moved on to trying new methods.

I have access to my Hostgator SSH as well as one of those "free" ssh server. Would there be a command through SSH I could execute that would load a webpages javascript and HTML5 coding fully on the SSH server? (Being able to view it is not reqired). I was thinking of maybe running a PHP command? Or would something else work better?

Any help is apprcieated, thank you!

2 Answers 2

1

Try with Selenium. Selenium supports javascript http://pypi.python.org/pypi/selenium

Sign up to request clarification or add additional context in comments.

Comments

0

Try PhantomJS. It has a great scripting engine to interact with pages that are downloaded. This assumes you actually want the HTML and javascript to be rendered as if it was loaded in a browser rather than just downloading the code itself.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.