From 27c7bb56ca40c7fb29eed122588e981e4a76437c Mon Sep 17 00:00:00 2001 From: sebthom Date: Mon, 7 Apr 2025 22:19:08 +0200 Subject: [PATCH] fix: downgrading nodriver to 0.39 to address failing browser launch #470 --- pdm.lock | 12 +++++++----- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pdm.lock b/pdm.lock index ec8bf2a..2ce069a 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:644b3393421aa20370626fe7573bb0dd9dcc74695f15a4f47c7259d438a46281" +content_hash = "sha256:13c90956820a101f2b726823f3ecb63ce8c32b5923fee0a0b313c42df91d1e53" [[metadata.targets]] requires_python = ">=3.10,<3.14" @@ -492,17 +492,19 @@ files = [ [[package]] name = "nodriver" -version = "0.41" +version = "0.39" requires_python = ">=3.9" -git = "https://github.com/ultrafunkamsterdam/nodriver.git" -revision = "17e6cb9a34e3aa33c21994b31703b4689a7bfb62" -summary = "\n [Docs here](https://ultrafunkamsterdam.github.io/nodriver)\n\n * Official successor of Undetected Chromedriver\n * Can be made to work for for all chromium based browsers.\n * Dropped selenium and chromedriver binary requirements.\n * fully asynchronous == bizarre performance gains, and more granular control\n\n Part of undetected-chromedriver, or merely the successor of it, this library is a full rewrite, providing a\n fast framework for web automation, webscraping, bots and any other creative ideas which are normally\n hindered by annoying anti bot systems like Captcha / CloudFlare / Imperva / hCaptcha and other\n big corp \"ai\" money machines using your input to make even more $$ (http://tinyurl.com/bigcorp-ai-inputs)\n\n The webdriver/selenium requirement is dropped entirely, since this library communicates directly to the browser.\n Being fully asynchronous, this adds massive performance improvements and more detailed control possibilities.\n\n As usual ( like undetected chromedriver) all config details and best practices are built-in, which means\n up and running with just a line of code.\n\n This makes it simple to use for quick prototyping, and perfect for interactive interpreter use (eg: IPython).\n\n\n WARNING:\n - results may vary due to many factors. No guarantees are given whatsoever.\n - Running from bad IP or datacenter may still cause captcha's and/or other problems.\n - With great power comes ... etc etc etc\n no but SERIOUS: for your own benefit, make sure \"they\" have no reason for upscaling anti-bot measurements.\n there might be one day it would not be feasible anymore to work up against big corp, and provide upgrades\n and free libraries.\n\n" +summary = "[Docs here](https://ultrafunkamsterdam.github.io/nodriver)" groups = ["default"] dependencies = [ "deprecated", "mss", "websockets>=14", ] +files = [ + {file = "nodriver-0.39-py3-none-any.whl", hash = "sha256:f245be52e6328393ece340a6dcbc8d5754fd7cf0838f0e1e40076944617178fc"}, + {file = "nodriver-0.39.tar.gz", hash = "sha256:af84f76215877c74166f95c8e7615268e31f6118f4c7291d201f29003f2248ef"}, +] [[package]] name = "packaging" diff --git a/pyproject.toml b/pyproject.toml index cfa3e21..f05e0c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ "certifi", "colorama", "jaraco.text", # required by pkg_resources during runtime - "nodriver @ git+https://github.com/ultrafunkamsterdam/nodriver.git", + "nodriver==0.39.0", # 0.40-0.44 have issues starting browsers and evaluating self.web_execute("window.BelenConf") fails "ruamel.yaml", "psutil", "wcmatch",