Skip to main content

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

Installation

To install the library, run:

pip install pyderman

Usage

After installed, call it in your code like so:

import pyderman as driver
path = driver.install(browser=driver.firefox)
print(f"Installed geckodriver driver to path: {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(f"Installed chromedriver to path: {path}")

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

Notes

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

Note on 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?

Download files

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

Source Distribution

pyderman-3.3.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyderman-3.3.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyderman-3.3.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for pyderman-3.3.1.tar.gz
Algorithm Hash digest
SHA256 ef848283f035cd4b689c5ee93f5452112ae230604dfd60fb9f92434241dcb4f3
MD5 f566fe53ce0323c075a2e0512578540c
BLAKE2b-256 446e9b418c821f6d867b89c845687929ee500a062a22d503a935eede3410805f

See more details on using hashes here.

File details

Details for the file pyderman-3.3.1-py3-none-any.whl.

File metadata

  • Download URL: pyderman-3.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for pyderman-3.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0781d4e98e6e2bfe342d8bddaf58526a1c6f24ac70b2d35c5d4ad77ac98b01b
MD5 10d0253499fe4969721699cd67890ea4
BLAKE2b-256 cbb9d064583cf14b97f7657dbf4f1210f8fe98af9d0d4253a4227ace213bf5b2

See more details on using hashes here.

Release history Release notifications | RSS feed

3.3.2

2 files

This release

3.3.1 This release

2 files

3.3.0

2 files

3.2.1

2 files

3.2.0

2 files

3.1.0

2 files

3.0.0

1 file

2.0.2

1 file

2.0.1

1 file

2.0.0

1 file

1.3.0

1 file

1.2.0

1 file

1.0.1

1 file

1.0.0

1 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