You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: Split BrowserType literal into two different literals based on context (#1070)
### Description
Split `BrowserType` literal into two different literals based on
context.
This avoids some confusion and some implicit string manipulation in
favor of explicit name mapping between the two different literals.
In Playwright: `'chromium', 'firefox', 'webkit'`
In browser fingerprints context it is : `'chrome', 'firefox', 'safari',
'edge'`
Copy file name to clipboardExpand all lines: docs/upgrading/upgrading_to_v1.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,33 @@ title: Upgrading to v1
5
5
6
6
This page summarizes the breaking changes between Crawlee for Python v0.6 and v1.0.
7
7
8
+
## Distinct use of word `browser` in similar contexts
9
+
10
+
Two different contexts:
11
+
- Playwright related browser
12
+
- fingerprinting related browser
13
+
14
+
Type of `HeaderGeneratorOptions.browsers` changed from `Literal['chromium', 'firefox', 'webkit', 'edge']` to `Literal['chrome', 'firefox', 'safari', 'edge']` as it is related to the fingerprinting context and not to the Playwright context.
15
+
16
+
Before:
17
+
18
+
```python
19
+
from crawlee.fingerprint_suite import HeaderGeneratorOptions
20
+
21
+
HeaderGeneratorOptions(browsers=['chromium'])
22
+
HeaderGeneratorOptions(browsers=['webkit'])
23
+
```
24
+
25
+
Now:
26
+
27
+
```python
28
+
from crawlee.fingerprint_suite import HeaderGeneratorOptions
29
+
30
+
HeaderGeneratorOptions(browsers=['chrome'])
31
+
HeaderGeneratorOptions(browsers=['safari'])
32
+
```
33
+
34
+
8
35
## Storage clients
9
36
10
37
In v1.0, we are introducing a new storage clients system. We have completely reworked their interface,
0 commit comments