Skip to main content

WebScraping Utils

https://img.shields.io/pypi/dm/d-utils

###Project description Python module to facilitate downloading and deploying WebDriver binaries. The classes in this module can be used to automatically search for and download the latest version (or a specific version) of a WebDriver binary (will download to $HOME/webdriver or /usr/local/webdriver if run with sudo), extract the binary from the downloaded archive and create a symlink in either /usr/local/bin (if run with sudo) or $HOME/bin. Note: For non-root users, the $HOME/bin directory may not be in the search PATH. If you are unable to add this directory your search path, a workaround is to capture the return value from the download() or download_and_install() method (see the docstrings for those methods for more information on the return values) and pass the path to the downloaded webdriver binary as a parameter to the constructor for the Selenium WebDriver instance. See the documentation for the executable_path parameter for the relevant WebDriver class for more information.

###Installation This module is available on the Python Package Index (PyPI) and can be installed as follows:

$ pip3 install d-utils

###Classes The following classes are available:

  • ChromeDriverDownloader for downloading and installing chromedriver (for Google Chrome).
  • GeckoDriverDownloader for downloading and installing geckodriver (for Mozilla Firefox).
  • OperaChromiumDriverDownloader for downloading and installing operadriver (for Chromium based Opera browsers). ###Example module usage ####Supported Modules:
  • platform_driver("Path")

use the path whether it exists or not /home/USER/bin/chromedriver

driver = platform_driver("/home/USER/bin/chromedriver")
driver.get(url)
  • cicle_browser("BrowserName")
driver = cicle_browser("Firefox")
driver.get(url)
  • switch_to("BrowserName")
driver = switch_to("Firefox")
driver.get(url)

Release files for d-utils 0.0.9

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

Source distribution (sdist)

Source distribution for d-utils 0.0.9
File Size Uploaded
d-utils-0.0.9.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for d-utils 0.0.9
File Interpreter ABI Platform
d_utils-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / d-utils-0.0.9.tar.gz

Download URL d-utils-0.0.9.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4c252e6ce81a2be404fbb8e98e60cf282d764e2169c366845f0288b2eeba62e0
BLAKE2b-256 checksum
How to use checksums
990dadfe250f861c2c985ac1e29c00eaac7e4259921dba9e70f455bf47ff4878
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

Release files / d_utils-0.0.9-py3-none-any.whl

Download URL d_utils-0.0.9-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbd0c311da93003c4eaac3045ba2e373b9e779564ebe3867542ab1e34aa46c14
BLAKE2b-256 checksum
How to use checksums
4289a0825558ded7b31c689ce1a2723b97ba3c8a0b5df7058ea88a30a24fa0ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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