Skip to content

docs: add a nokk example to the browser providers - #402

Closed
koloss777 wants to merge 1 commit into
scrapy-plugins:mainfrom
koloss777:koloss777-patch-1
Closed

koloss777 wants to merge 1 commit into
scrapy-plugins:mainfrom
koloss777:koloss777-patch-1

Conversation

@koloss777

Copy link
Copy Markdown

Adds nokk to the provider examples in docs/providers.rst, in the same shape as the patchright, camoufox and invisible_playwright ones.

nokk is a headless browser engine that speaks CDP and passes Cloudflare's challenges. The provider starts it through its Python package and connects Playwright's Chromium to it; it has no persistent contexts, so launch_persistent_context raises NotSupported.

Checked with scrapy 2.19.0, scrapy-playwright 0.0.48, playwright 1.64.1 and nokk 0.1.45a1 (Python 3.12): the code from the docs, used as is, fetched example.com and two pages behind Cloudflare challenges.

I am the author of nokk.

Adds nokk to the provider examples in docs/providers.rst, in the same shape as
the patchright, camoufox and invisible_playwright ones.

nokk is a headless browser engine that speaks CDP and passes Cloudflare's
challenges. The provider starts it through its Python package and connects
Playwright's Chromium to it; it has no persistent contexts, so
launch_persistent_context raises NotSupported.

Checked with scrapy 2.19.0, scrapy-playwright 0.0.48, playwright 1.64.1 and
nokk 0.1.45a1 (Python 3.12): the code from the docs, used as is, fetched
example.com and two pages behind Cloudflare challenges.

I am the author of nokk.
@AdrianAtZyte

Copy link
Copy Markdown
Contributor

Thanks, but I would rather not add this one. The examples are there to show how to write a provider, not to list projects, and this one does not show anything the existing examples do not already cover. For connecting to nokk, PLAYWRIGHT_CDP_URL already works without a custom provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants