Skip to main content

Installs the latest Chrome/Firefox/Opera/PhantomJS/Edge web drivers automatically.

Project description

Pyderman (Selenium Web Driver Installer)

Ubuntu MacOS Windows MacOS (SUR)

This is a fast, simple, dependency-free package that can automatically find & download any version of the Google Chrome (chromeDriver), Firefox (geckoDriver), PhantomJS, Opera (operaDriver), and Edge (edgeDriver)* web drivers.

This project was built to allow developers to seamlessly include selenium support on the user-side, without requiring any manual configuration on their part. It will automatically locate the correct driver binary for the platform & version you choose, as well as setting the os-specific permissions after downloading.

It is tested daily on Windows/Linux/macOS against Python versions 3.5+.

To install the library, run:

pip install pyderman

Then call it in your code like so:

import pyderman as driver
path = driver.install(browser=driver.firefox)
print('Installed geckodriver driver to path: %s' % path)

There are options for the output directory, disabling printout, running chmod on the downloaded executable, automatic overwriting, executable file name, and version number. All parameters are optional, and the default values are listed below.

This example downloads the Chrome Driver instead, by changing browser like so:

import pyderman as dr
path = dr.install(browser=dr.chrome, file_directory='./lib/', verbose=True, chmod=True, overwrite=False, version=None, filename=None, return_info=False)
print('Installed chromedriver to path: %s' % path)

The download is very fast, and will skip downloading if the file already exists. This behavior can be toggled with overwrite.

Note on MS Edge:

Microsoft has switched Edge to use a flavor of Chrome behind the scenes. As of October 2019, Pyderman will download this MS Chromium Driver. There is currently no official release available for Linux, and their driver is experimental, so make sure you know what you're doing if you use this driver. If you require stability, it is recommended you specify a version instead of using the "latest".

Mac OS: Several of the recent MS Edge Driver builds have been released in a broken state for Mac. To check in-depth compatibility, open the latest test.

Note on macOS

Some versions of macOS have certificate issues with Python. Typically, in recent versions of Python, it will prompt you to install these when you install Python. Since Python needs these installed in order to make https requests, you may need to install these first. Depending on your project, it may also be possible to include a library to automatically import these certificates. Please visit this link to learn more.

Big Sur

Apple broke a ton of compatibility moving to Big Sur, and now many of the web drivers do not have working builds within the new architecture. This project will only halfheartedly attempt to keep any drivers working on Big Sur architecture until all the available drivers have stable release patterns for the platform.

Why's it called 'Pyderman'?

Because it installs web-drivers. Get it?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyderman-2.0.2.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file pyderman-2.0.2.tar.gz.

File metadata

  • Download URL: pyderman-2.0.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0a2

File hashes

Hashes for pyderman-2.0.2.tar.gz
Algorithm Hash digest
SHA256 16f58c0d92e619ea5a7acaf51ec75ccf30aace08da3c4f27a23c39535f8c1b38
MD5 fb8dd170523514a2cdd016271be144d5
BLAKE2b-256 75d9b487085f6e67054b85c6e7bd8a8622789cb95ab81f5eac1daa3d532d7bb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page