Add tests, docs, and contributors for PRs #1463 and #1435

- Add tests for device_scale_factor (config + integration)
- Add tests for redirected_status_code (model + redirect + raw HTML)
- Document device_scale_factor in browser config docs and API reference
- Document redirected_status_code in crawler result docs and API reference
- Add TristanDonze and charlaie to CONTRIBUTORS.md
- Update PR-TODOLIST with session results
This commit is contained in:
unclecode
2026-02-06 09:30:19 +00:00
parent 37a49c5315
commit fbc52813a4
8 changed files with 164 additions and 8 deletions

View File

@@ -84,11 +84,16 @@ class BrowserConfig:
```
- Leave as `None` if a proxy is not required.
7.**`viewport_width` & `viewport_height`**
- The initial window size.
7.**`viewport_width` & `viewport_height`**
- The initial window size.
- Some sites behave differently with smaller or bigger viewports.
8.**`verbose`**
8.**`device_scale_factor`**
- Controls the device pixel ratio (DPR) for rendering. Default is `1.0`.
- Set to `2.0` for Retina-quality screenshots (e.g., a 1920×1080 viewport produces 3840×2160 images).
- Higher values increase screenshot size and rendering time proportionally.
9.**`verbose`**
- If `True`, prints extra logs.
- Handy for debugging.