From cc1ceed3592a5b502170267d6074132a4fcb5675 Mon Sep 17 00:00:00 2001 From: Josef Prochazka Date: Tue, 30 Sep 2025 14:52:12 +0200 Subject: [PATCH] Update templates to handle optional httpx client --- .../{{cookiecutter.project_name}}/pyproject.toml | 4 ++-- .../{{cookiecutter.project_name}}/requirements.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/crawlee/project_template/{{cookiecutter.project_name}}/pyproject.toml b/src/crawlee/project_template/{{cookiecutter.project_name}}/pyproject.toml index 5c2146104d..fd6d28c7c2 100644 --- a/src/crawlee/project_template/{{cookiecutter.project_name}}/pyproject.toml +++ b/src/crawlee/project_template/{{cookiecutter.project_name}}/pyproject.toml @@ -5,8 +5,8 @@ # % endif # % if cookiecutter.http_client == 'curl-impersonate' # % do extras.append('curl-impersonate') -# % elif cookiecutter.http_client == 'impit' -# % do extras.append('impit') +# % elif cookiecutter.http_client == 'httpx' +# % do extras.append('httpx') # % endif [project] diff --git a/src/crawlee/project_template/{{cookiecutter.project_name}}/requirements.txt b/src/crawlee/project_template/{{cookiecutter.project_name}}/requirements.txt index 1eebd53bcf..ef69bdc1e4 100644 --- a/src/crawlee/project_template/{{cookiecutter.project_name}}/requirements.txt +++ b/src/crawlee/project_template/{{cookiecutter.project_name}}/requirements.txt @@ -10,4 +10,7 @@ apify # % if cookiecutter.http_client == 'curl-impersonate' # % do extras.append('curl-impersonate') # % endif +# % if cookiecutter.http_client == 'httpx' +# % do extras.append('httpx') +# % endif crawlee[{{ extras | join(',') }}]