Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/crawlee/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from pathlib import Path
from typing import Annotated, cast

from click import Choice

try:
import inquirer
import typer
Expand Down Expand Up @@ -133,22 +135,26 @@ def create(
'--crawler-type',
'--template',
show_default=False,
click_type=Choice(crawler_choices),
help='The library that will be used for crawling in your crawler. If none is given, you will be prompted.',
),
http_client: str | None = typer.Option(
None,
show_default=False,
click_type=Choice(http_client_choices),
help='The library that will be used to make HTTP requests in your crawler. '
'If none is given, you will be prompted.',
),
package_manager: str | None = typer.Option(
default=None,
show_default=False,
click_type=Choice(package_manager_choices),
help='Package manager to be used in the new project. If none is given, you will be prompted.',
),
start_url: str | None = typer.Option(
default=None,
show_default=False,
metavar='[START_URL]',
help='The URL where crawling should start. If none is given, you will be prompted.',
),
*,
Expand Down