scrappey 1.0.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Pim de Bree
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,38 @@
1
+ Metadata-Version: 2.4
2
+ Name: scrappey
3
+ Version: 1.0.0
4
+ Summary: Official Python wrapper for Scrappey.com - Web scraping API with Cloudflare bypass, antibot solving, and browser automation
5
+ Author-email: Scrappey <info@scrappey.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://scrappey.com
8
+ Project-URL: Documentation, https://wiki.scrappey.com/getting-started
9
+ Project-URL: Repository, https://github.com/pim97/scrappey-wrapper-python
10
+ Project-URL: Issues, https://github.com/pim97/scrappey-wrapper-python/issues
11
+ Project-URL: Builder, https://app.scrappey.com/#/builder
12
+ Keywords: scraping,web-scraping,cloudflare,cloudflare-bypass,antibot,captcha,captcha-solver,browser-automation,datadome,akamai,incapsula,perimeterx,kasada,turnstile,recaptcha,hcaptcha,scrappey
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Internet :: WWW/HTTP
24
+ Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
25
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.9
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE.txt
30
+ Requires-Dist: httpx>=0.25.0
31
+ Provides-Extra: dev
32
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
33
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
34
+ Requires-Dist: pytest-httpx>=0.30.0; extra == "dev"
35
+ Requires-Dist: black>=23.0.0; extra == "dev"
36
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
37
+ Requires-Dist: mypy>=1.0.0; extra == "dev"
38
+ Dynamic: license-file
@@ -0,0 +1,97 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "scrappey"
7
+ version = "1.0.0"
8
+ description = "Official Python wrapper for Scrappey.com - Web scraping API with Cloudflare bypass, antibot solving, and browser automation"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.9"
12
+ authors = [
13
+ {name = "Scrappey", email = "info@scrappey.com"}
14
+ ]
15
+ keywords = [
16
+ "scraping",
17
+ "web-scraping",
18
+ "cloudflare",
19
+ "cloudflare-bypass",
20
+ "antibot",
21
+ "captcha",
22
+ "captcha-solver",
23
+ "browser-automation",
24
+ "datadome",
25
+ "akamai",
26
+ "incapsula",
27
+ "perimeterx",
28
+ "kasada",
29
+ "turnstile",
30
+ "recaptcha",
31
+ "hcaptcha",
32
+ "scrappey"
33
+ ]
34
+ classifiers = [
35
+ "Development Status :: 5 - Production/Stable",
36
+ "Intended Audience :: Developers",
37
+ "License :: OSI Approved :: MIT License",
38
+ "Operating System :: OS Independent",
39
+ "Programming Language :: Python :: 3",
40
+ "Programming Language :: Python :: 3.9",
41
+ "Programming Language :: Python :: 3.10",
42
+ "Programming Language :: Python :: 3.11",
43
+ "Programming Language :: Python :: 3.12",
44
+ "Programming Language :: Python :: 3.13",
45
+ "Topic :: Internet :: WWW/HTTP",
46
+ "Topic :: Internet :: WWW/HTTP :: Browsers",
47
+ "Topic :: Software Development :: Libraries :: Python Modules",
48
+ "Typing :: Typed",
49
+ ]
50
+ dependencies = [
51
+ "httpx>=0.25.0",
52
+ ]
53
+
54
+ [project.optional-dependencies]
55
+ dev = [
56
+ "pytest>=7.0.0",
57
+ "pytest-asyncio>=0.23.0",
58
+ "pytest-httpx>=0.30.0",
59
+ "black>=23.0.0",
60
+ "ruff>=0.1.0",
61
+ "mypy>=1.0.0",
62
+ ]
63
+
64
+ [project.urls]
65
+ Homepage = "https://scrappey.com"
66
+ Documentation = "https://wiki.scrappey.com/getting-started"
67
+ Repository = "https://github.com/pim97/scrappey-wrapper-python"
68
+ Issues = "https://github.com/pim97/scrappey-wrapper-python/issues"
69
+ Builder = "https://app.scrappey.com/#/builder"
70
+
71
+ [tool.setuptools.packages.find]
72
+ where = ["src"]
73
+
74
+ [tool.setuptools.package-data]
75
+ scrappey = ["py.typed"]
76
+
77
+ [tool.black]
78
+ line-length = 100
79
+ target-version = ["py39", "py310", "py311", "py312", "py313"]
80
+
81
+ [tool.ruff]
82
+ line-length = 100
83
+ target-version = "py39"
84
+
85
+ [tool.ruff.lint]
86
+ select = ["E", "F", "W", "I", "N", "UP", "B", "C4"]
87
+ ignore = ["E501"]
88
+
89
+ [tool.mypy]
90
+ python_version = "3.9"
91
+ warn_return_any = true
92
+ warn_unused_configs = true
93
+ disallow_untyped_defs = true
94
+
95
+ [tool.pytest.ini_options]
96
+ asyncio_mode = "auto"
97
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,122 @@
1
+ """
2
+ Scrappey - Official Python wrapper for Scrappey.com
3
+
4
+ Web scraping API with Cloudflare bypass, antibot solving, captcha solving,
5
+ and browser automation capabilities.
6
+
7
+ Example:
8
+ ```python
9
+ from scrappey import Scrappey
10
+
11
+ # Initialize client
12
+ scrappey = Scrappey(api_key="your_api_key")
13
+
14
+ # Simple GET request
15
+ result = scrappey.get(url="https://example.com")
16
+ print(result["solution"]["response"])
17
+ ```
18
+
19
+ For async usage:
20
+ ```python
21
+ import asyncio
22
+ from scrappey import AsyncScrappey
23
+
24
+ async def main():
25
+ async with AsyncScrappey(api_key="your_api_key") as scrappey:
26
+ result = await scrappey.get(url="https://example.com")
27
+ print(result["solution"]["response"])
28
+
29
+ asyncio.run(main())
30
+ ```
31
+
32
+ Links:
33
+ - Website: https://scrappey.com
34
+ - Documentation: https://wiki.scrappey.com/getting-started
35
+ - Request Builder: https://app.scrappey.com/#/builder
36
+ - GitHub: https://github.com/pim97/scrappey-wrapper-python
37
+ """
38
+
39
+ from .async_client import AsyncScrappey
40
+ from .client import Scrappey
41
+ from .exceptions import (
42
+ ScrappeyAuthenticationError,
43
+ ScrappeyConnectionError,
44
+ ScrappeyError,
45
+ ScrappeyTimeoutError,
46
+ )
47
+ from .types import (
48
+ BrowserAction,
49
+ CaptchaData,
50
+ ClickAction,
51
+ Cookie,
52
+ CookieJarItem,
53
+ DropdownAction,
54
+ ExecuteJsAction,
55
+ GotoAction,
56
+ HoverAction,
57
+ KeyboardAction,
58
+ RequestOptions,
59
+ ScrollAction,
60
+ ScrappeyResponse,
61
+ SessionActiveResponse,
62
+ SessionCreateOptions,
63
+ SessionCreateResponse,
64
+ SessionInfo,
65
+ SessionListResponse,
66
+ SetViewportAction,
67
+ Solution,
68
+ SolveCaptchaAction,
69
+ SwitchIframeAction,
70
+ TypeAction,
71
+ WaitAction,
72
+ WaitForCookieAction,
73
+ WaitForFunctionAction,
74
+ WaitForLoadStateAction,
75
+ WaitForSelectorAction,
76
+ WhileAction,
77
+ )
78
+
79
+ __version__ = "1.0.0"
80
+
81
+ __all__ = [
82
+ # Main clients
83
+ "Scrappey",
84
+ "AsyncScrappey",
85
+ # Exceptions
86
+ "ScrappeyError",
87
+ "ScrappeyConnectionError",
88
+ "ScrappeyTimeoutError",
89
+ "ScrappeyAuthenticationError",
90
+ # Response types
91
+ "ScrappeyResponse",
92
+ "Solution",
93
+ "SessionCreateResponse",
94
+ "SessionListResponse",
95
+ "SessionActiveResponse",
96
+ "SessionInfo",
97
+ # Request types
98
+ "RequestOptions",
99
+ "SessionCreateOptions",
100
+ "Cookie",
101
+ "CookieJarItem",
102
+ # Browser action types
103
+ "BrowserAction",
104
+ "ClickAction",
105
+ "TypeAction",
106
+ "GotoAction",
107
+ "WaitAction",
108
+ "WaitForSelectorAction",
109
+ "WaitForFunctionAction",
110
+ "WaitForLoadStateAction",
111
+ "WaitForCookieAction",
112
+ "ExecuteJsAction",
113
+ "ScrollAction",
114
+ "HoverAction",
115
+ "KeyboardAction",
116
+ "DropdownAction",
117
+ "SwitchIframeAction",
118
+ "SetViewportAction",
119
+ "WhileAction",
120
+ "SolveCaptchaAction",
121
+ "CaptchaData",
122
+ ]