https://github.com/hansalemaos/a_selenium_get_with_timeout
No more getting stuck with not reacting URLs
https://github.com/hansalemaos/a_selenium_get_with_timeout
get python selenium timeout
Last synced: about 2 months ago
JSON representation
No more getting stuck with not reacting URLs
- Host: GitHub
- URL: https://github.com/hansalemaos/a_selenium_get_with_timeout
- Owner: hansalemaos
- License: mit
- Created: 2023-01-01T08:02:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T17:43:01.000Z (over 3 years ago)
- Last Synced: 2025-09-07T02:51:43.809Z (10 months ago)
- Topics: get, python, selenium, timeout
- Language: Python
- Homepage: https://pypi.org/project/a-selenium-get-with-timeout/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# No more getting stuck with not reacting URLs
```python
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium-get-with-timeout
from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc
from a_selenium_get_with_timeout import get_site_with_timeout
if __name__ == "__main__":
folderchromedriver = "f:\\seleniumdriver2"
path = download_undetected_chromedriver(folder_path_for_exe=folderchromedriver, undetected=True)
driver = uc.Chrome(driver_executable_path=path)
url=r"https://www.whitehouse.gov/"
get_site_with_timeout(driver, url, timeout=5)
```