A decorator to kill Chrome if Selenium/ChromeDriver got stuck
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium-kill
from a_selenium_kill import add_kill_selenium
from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc
# You have to create the instance in a function, and use the decorator @add_kill_selenium
@add_kill_selenium
def get_driver():
folderchromedriver = "f:\\seleniumdriver2"
path = download_undetected_chromedriver(folder_path_for_exe=folderchromedriver, undetected=True)
driver = uc.Chrome(driver_executable_path=path)
return driver
if __name__ == "__main__":
driver = get_driver()
#Kill Chrome:
driver.die_die_die_selenium()
Metadata
Release files for a-selenium-kill 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| a_selenium_kill-0.10.tar.gz | 4.1 kB | Without provenance | Details for a_selenium_kill-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a_selenium_kill-0.10-py3-none-any.whl | Python 3 | none | any | Details for a_selenium_kill-0.10-py3-none-any.whl |
Total release size: 9.5 kB
Release files / a_selenium_kill-0.10.tar.gz
| Download URL | a_selenium_kill-0.10.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d5bdf95dec8147f463c629fa5455aca3653114e7496e2c3463eb0d114523b4e
|
|
BLAKE2b-256 checksum How to use checksums |
cc50bb8d798641defa02114330b139e4ae19c8203603fe32311d4d41b6507916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / a_selenium_kill-0.10-py3-none-any.whl
| Download URL | a_selenium_kill-0.10-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3a790cbdab8b8c974d62eea4e0b9dc3ca46dee1a1190e4bb0d38017229682d3
|
|
BLAKE2b-256 checksum How to use checksums |
9c72b797158d2a9fe87df6a954b905f8f9bc78bd047d3a810aff42a10f22be7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for a-selenium-kill 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.