Karim shoair commited on
Commit ·
c32f33c
1
Parent(s): e3e46c8
fix: shortcuts for backward compatibility
Browse files- scrapling/parser.py +5 -0
scrapling/parser.py
CHANGED
|
@@ -1383,3 +1383,8 @@ class Selectors(List[Selector]):
|
|
| 1383 |
def __getstate__(self) -> Any:
|
| 1384 |
# lxml don't like it :)
|
| 1385 |
raise TypeError("Can't pickle Selectors object")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1383 |
def __getstate__(self) -> Any:
|
| 1384 |
# lxml don't like it :)
|
| 1385 |
raise TypeError("Can't pickle Selectors object")
|
| 1386 |
+
|
| 1387 |
+
|
| 1388 |
+
# For backward compatibility
|
| 1389 |
+
Adaptor = Selector
|
| 1390 |
+
Adaptors = Selectors
|