Skip to main content

Pyderman (Selenium Web Driver Installer) badge

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".

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.

Why's it called 'Pyderman'?

Because it installs web-drivers. Get it?

Metadata

Release files for pyderman 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyderman 2.0.1
File Size Uploaded
pyderman-2.0.1.tar.gz 6.5 kB Details

Release files / pyderman-2.0.1.tar.gz

Download URL pyderman-2.0.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
14ee13646a87c31fcdd3d365cbd88f5597dd94385e8bc54018270a760f340b92
BLAKE2b-256 checksum
How to use checksums
561002d969966e0b296bdbc6de7d450ab56080848f768a986a363466a27c16ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

Release history Release notifications | RSS feed

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

1 release file

2.0.2

1 release file

This release

2.0.1 This release

1 release file

2.0.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page