Skip to main content

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

Reason this release was yanked:

Incorrect python versioning

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

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?

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-3.1.0.tar.gz (10.8 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.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyderman-3.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pyderman-3.1.0.tar.gz
Algorithm Hash digest
SHA256 ad1724531c80d9c7866022635b382366232985054de99f82b7101befc7aaab58
MD5 393fe6aea9cc401ba3493ee1bd67d709
BLAKE2b-256 b26ed036196baedf6fd3d5968549f230b8e6320866b18913251812e9a248d0a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyderman-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pyderman-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3532fd381dc4a4c2cbd32d8b2d4eb030cba6647eefacf9c275c4243d36b7d746
MD5 3827cc20f86c56358236a59b13ce196e
BLAKE2b-256 67077752c37a44aa0b80f9501c13e8067229c2f2862e3dc71e25615a48688c5a

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