docs: Update Playwright home page code example (#1548) · realam/crawlee-python@b8afba7 · GitHub
Skip to content

Commit b8afba7

Browse files
authored
docs: Update Playwright home page code example (apify#1548)
- Set headless mode to True by default to improve performance when running via "Run on Apify", preventing slow execution and potential timeout errors. - Align the Python example more closely with its JavaScript counterpart to keep the documentation consistent across languages. - Add `asyncio.run(main())` so the snippet is fully copy-and-play ready. - Also, a minor update regarding the docs code examples (same as in apify/apify-sdk-python#673).
1 parent cb7e609 commit b8afba7

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

‎.github/workflows/run_code_checks.yaml‎

Lines changed: 1 addition & 0 deletions

‎Makefile‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# This is default for local testing, but GitHub workflows override it to a higher value in CI
55
E2E_TESTS_CONCURRENCY = 1
66

7-
# Placeholder token; replace with a real one for local docs testing if needed
8-
APIFY_TOKEN = apify_api_token_placeholder
9-
107
clean:
118
rm -rf .mypy_cache .pytest_cache .ruff_cache build dist htmlcov .coverage
129

@@ -58,4 +55,4 @@ build-docs:
5855
cd website && corepack enable && yarn && uv run yarn build
5956

6057
run-docs: build-api-reference
61-
export APIFY_SIGNING_TOKEN=$(APIFY_TOKEN) && cd website && corepack enable && yarn && uv run yarn start
58+
cd website && corepack enable && yarn && uv run yarn start
Lines changed: 14 additions & 9 deletions

0 commit comments

Comments
 (0)