saglamcem
saglamcem

Reputation: 687

Distributing py program involving PhantomJS

I have a Python program that works with Selenium and PhantomJS, and I’d like to distribute it. The functionality is quite simple; it goes onto a website, fills certain forms and returns the outcome, without any visible browser action. The problem is that I can’t expect an arbitrary user to have PhantomJS installed on their computers. How should I approach the distribution process? I already checked Setuptools and PythonAnywhere, but I don’t think they work for what I want.

Edit: May be too hopeful, but I'd like to be able to distribute it for Windows, OSX and Ubuntu.

Upvotes: 2

Views: 172

Answers (1)

The way I do it is through a web application built on Flask (one of many great python web frameworks) and hosted on PythonAnywhere.

To use PhantomJS and Selenium in PythonAnywhere you have to ask for Docker Consoles. Instructions here: https://www.pythonanywhere.com/forums/topic/1320/

Upvotes: 2

Related Questions