From f2da460bb9a3e2a538ea6d4815799ccc5fffc2f7 Mon Sep 17 00:00:00 2001 From: "James T. Wood" Date: Sun, 24 Aug 2025 22:12:20 -0400 Subject: [PATCH] fix(dependencies): add cssselect to project dependencies Fixes bug reported in issue #1405 [Bug]: Excluded selector (excluded_selector) doesn't work This commit reintroduces the cssselect library which was removed by PR (https://github.com/unclecode/crawl4ai/pull/1368) and merged via (https://github.com/unclecode/crawl4ai/commit/437395e4902e2925ea55319353f64555b6da407b). Integration tested against 0.7.4 Docker container. Reintroducing cssselector package eliminated errors seen in logs and excluded_selector functionality was restored. Refs: #1405 --- pyproject.toml | 1 + requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9b00bd28..e7288dc2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,7 @@ dependencies = [ "PyYAML>=6.0", "nltk>=3.9.1", "rich>=13.9.4", + "cssselect>=1.2.0", "httpx>=0.27.2", "httpx[http2]>=0.27.2", "fake-useragent>=2.0.3", diff --git a/requirements.txt b/requirements.txt index 20f4df4f..0e66b3f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,6 +24,7 @@ psutil>=6.1.1 PyYAML>=6.0 nltk>=3.9.1 rich>=13.9.4 +cssselect>=1.2.0 chardet>=5.2.0 brotli>=1.1.0 httpx[http2]>=0.27.2