silk-scraper 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/PKG-INFO +4 -4
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/README.md +3 -3
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/pyproject.toml +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/__init__.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/context.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/elements.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/input.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/manage.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/navigation.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/utils.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/context.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/driver.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/drivers/playwright.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/element.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/manager.py +1 -1
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/LICENSE +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/__init__.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/py.typed +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/__init__.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/driver_factory.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/py.typed +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/types.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/composition.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/flow.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/operation.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/placeholder.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/py.typed +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/selectors/__init__.py +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/selectors/py.typed +0 -0
- {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/selectors/selector.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: silk-scraper
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: A flexible browser automation library with support for multiple drivers
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Galad Dirie
|
|
@@ -33,7 +33,7 @@ Description-Content-Type: text/markdown
|
|
|
33
33
|
|
|
34
34
|
# Silk
|
|
35
35
|
|
|
36
|
-
[](https://pypi.org/project/silk-scraper/)
|
|
37
37
|
[](https://pypi.org/project/silk-scraper/)
|
|
38
38
|
[](https://codecov.io/gh/galaddirie/silk)
|
|
39
39
|
[](LICENSE)
|
|
@@ -415,7 +415,7 @@ Creates a pipeline where each action receives the result of the previous action,
|
|
|
415
415
|
from silk.flow import pipe
|
|
416
416
|
from silk.actions.elements import GetText
|
|
417
417
|
from silk.actions.decorators import action
|
|
418
|
-
from expression
|
|
418
|
+
from expression import Ok, Error
|
|
419
419
|
|
|
420
420
|
@action
|
|
421
421
|
async def parse_price(context, price_text):
|
|
@@ -628,7 +628,7 @@ Extend Silk with your own custom actions:
|
|
|
628
628
|
|
|
629
629
|
```python
|
|
630
630
|
from silk.actions.decorators import action
|
|
631
|
-
from expression
|
|
631
|
+
from expression import Ok, Error
|
|
632
632
|
|
|
633
633
|
@action
|
|
634
634
|
async def extract_price(context, selector):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Silk
|
|
2
2
|
|
|
3
|
-
[](https://pypi.org/project/silk-scraper/)
|
|
4
4
|
[](https://pypi.org/project/silk-scraper/)
|
|
5
5
|
[](https://codecov.io/gh/galaddirie/silk)
|
|
6
6
|
[](LICENSE)
|
|
@@ -382,7 +382,7 @@ Creates a pipeline where each action receives the result of the previous action,
|
|
|
382
382
|
from silk.flow import pipe
|
|
383
383
|
from silk.actions.elements import GetText
|
|
384
384
|
from silk.actions.decorators import action
|
|
385
|
-
from expression
|
|
385
|
+
from expression import Ok, Error
|
|
386
386
|
|
|
387
387
|
@action
|
|
388
388
|
async def parse_price(context, price_text):
|
|
@@ -595,7 +595,7 @@ Extend Silk with your own custom actions:
|
|
|
595
595
|
|
|
596
596
|
```python
|
|
597
597
|
from silk.actions.decorators import action
|
|
598
|
-
from expression
|
|
598
|
+
from expression import Ok, Error
|
|
599
599
|
|
|
600
600
|
@action
|
|
601
601
|
async def extract_price(context, selector):
|
|
@@ -5,7 +5,7 @@ Extraction actions for retrieving data from web pages.
|
|
|
5
5
|
import logging
|
|
6
6
|
from typing import Any, Dict, List, Optional, TypeVar, Union
|
|
7
7
|
|
|
8
|
-
from expression
|
|
8
|
+
from expression import Error, Ok, Result
|
|
9
9
|
from fp_ops import operation
|
|
10
10
|
|
|
11
11
|
from silk.actions.context import ActionContext
|
|
@@ -5,7 +5,7 @@ Input actions for interacting with elements via mouse or keyboard in the browser
|
|
|
5
5
|
import logging
|
|
6
6
|
from typing import Any, List, Optional, Tuple, TypeVar, Union
|
|
7
7
|
|
|
8
|
-
from expression
|
|
8
|
+
from expression import Error, Ok, Result
|
|
9
9
|
from fp_ops import operation
|
|
10
10
|
|
|
11
11
|
from silk.actions.context import ActionContext
|
|
@@ -9,7 +9,7 @@ and manage browser contexts throughout a workflow.
|
|
|
9
9
|
import logging
|
|
10
10
|
from typing import Any, Dict, Optional, Union
|
|
11
11
|
|
|
12
|
-
from expression
|
|
12
|
+
from expression import Error, Ok, Result
|
|
13
13
|
from fp_ops import operation
|
|
14
14
|
|
|
15
15
|
from silk.actions.context import ActionContext
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from typing import Any, Callable, Optional, Tuple, Union, TypeVar
|
|
2
2
|
|
|
3
|
-
from expression
|
|
3
|
+
from expression import Error, Result, Ok
|
|
4
4
|
from silk.actions.context import ActionContext
|
|
5
5
|
from silk.browsers.driver import BrowserDriver
|
|
6
6
|
from silk.browsers.element import ElementHandle
|
|
@@ -3,7 +3,7 @@ from abc import abstractmethod
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
from typing import Any, Dict, List, Optional, Protocol, Type, Union
|
|
5
5
|
|
|
6
|
-
from expression
|
|
6
|
+
from expression import Result
|
|
7
7
|
|
|
8
8
|
from silk.browsers.element import ElementHandle
|
|
9
9
|
from silk.browsers.types import (
|
|
@@ -14,7 +14,7 @@ from typing import (
|
|
|
14
14
|
cast,
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
from expression
|
|
17
|
+
from expression import Error, Ok, Result
|
|
18
18
|
from playwright.async_api import Browser
|
|
19
19
|
from playwright.async_api import BrowserContext as PlaywrightContext
|
|
20
20
|
from playwright.async_api import ElementHandle as PlaywrightNativeElement
|
|
@@ -2,7 +2,7 @@ import logging
|
|
|
2
2
|
from contextlib import asynccontextmanager
|
|
3
3
|
from typing import TYPE_CHECKING, Any, AsyncIterator, Dict, List, Optional, TypeVar
|
|
4
4
|
|
|
5
|
-
from expression
|
|
5
|
+
from expression import Error, Ok, Result
|
|
6
6
|
|
|
7
7
|
from silk.browsers.context import BrowserContext
|
|
8
8
|
from silk.browsers.driver import BrowserDriver
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|