1

I'm writing a project in Django which is to run on Heroku PaaS. Within my code base, I would like to be able to perform some tests on links, ex.: open them in a browser.

What's most important to me is that I need to execute the javascript.

Are there any emulators of browser in Python which supports javascript emulation (I know mechanize doesn't, I tried splinter and spynner - but I have some difficulties in using them on heroku, to use splinter I'd need PyQt, to use spynner I'd need firefox - and I don't know how to install them - I guess it is not possible, is it?).

Of course I'm not fixed on Python. I mean, I've thought about another possibility - to write a Perl script (I have already written a script which does what I want it to do) and execute it from Python (I know how to do that) - but I don't know if it's possible to run Perl script from a Python code on Heroku.

Can anybody help me please?

Regards, Natalia

4

0 回答 0