python to exe, Selenium inside windows

0

I leave the full code of my program in Python 2.7

link

I am looking for a couple of additions but I do not know in which way and with what programs I should do it. First of all, I need to convert it to executable.exe. On the other hand I would like that since I work with selenium I can create a window where the selenium is executed and not that I open a browser. I mean a window where I go showing everything that is happening in the selenium. I do not know if anything I ask is possible.

Thanks

    
asked by Martin Bouhier 01.11.2017 в 05:21
source

1 answer

1

To the first question on how to generate an exe file from python, there are several options, the one I usually recommend is py2exe, but here are others:

  • py2exe
  • pyinstaller
  • Freezer
  • With py2exe you can include the libraries that you use or directory dependencies. The others also allow to be used in other OS generating the executables of the OS in which they are executed, not only for windows.

    Regarding creating an interface as simple or complex as you need, I would use PyQt , it has an excellent documentation with examples .

    And on whether Selenium can do it with PhantomJS and change the driver's opening:

    driver = webdriver.Firefox()
    

    by:

    driver = webdriver.PhantomJS()
    
        
    answered by 02.11.2017 / 09:06
    source