mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
bumped flaresolverr
This commit is contained in:
parent
4e68089909
commit
f74bd7c3fc
2 changed files with 51 additions and 56 deletions
19
packages/flaresolverr/flaresolverr.patch
Normal file
19
packages/flaresolverr/flaresolverr.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
diff --git a/src/utils.py b/src/utils.py
|
||||
index ceff7ec..06623bb 100644
|
||||
--- a/src/utils.py
|
||||
+++ b/src/utils.py
|
||||
@@ -69,13 +69,10 @@ def get_webdriver() -> WebDriver:
|
||||
|
||||
# downloads and patches the chromedriver
|
||||
# if we don't set driver_executable_path it downloads, patches, and deletes the driver each time
|
||||
- driver = uc.Chrome(options=options, driver_executable_path=driver_exe_path, version_main=version_main,
|
||||
+ driver = uc.Chrome(options=options, driver_executable_path="CHANGEME",
|
||||
windows_headless=windows_headless)
|
||||
|
||||
# save the patched driver to avoid re-downloads
|
||||
- if driver_exe_path is None:
|
||||
- PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
|
||||
- shutil.copy(driver.patcher.executable_path, PATCHED_DRIVER_PATH)
|
||||
|
||||
# selenium vanilla
|
||||
# options = webdriver.ChromeOptions()
|
Loading…
Add table
Add a link
Reference in a new issue