langchain-scrapeless 0.1.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Scrapeless
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,271 @@
1
+ Metadata-Version: 2.3
2
+ Name: langchain-scrapeless
3
+ Version: 0.1.3
4
+ Summary: An integration package connecting Scrapeless and LangChain
5
+ License: MIT
6
+ Keywords: scrapeless,langchain,integration,universal scraping api,scraping,crawl
7
+ Author: Scrapeless Team
8
+ Author-email: scrapelessteam@gmail.com
9
+ Requires-Python: >=3.9,<4.0
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Dist: jupyter (>=1.1.1,<2.0.0)
18
+ Requires-Dist: langchain-core (>=0.3.15,<0.4.0)
19
+ Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
20
+ Requires-Dist: scrapeless (==1.1.1)
21
+ Project-URL: Issue Tracker, https://github.com/scrapeless-ai/langchain-scrapeless/issues
22
+ Project-URL: Repository, https://github.com/scrapeless-ai/langchain-scrapeless
23
+ Project-URL: Release Notes, https://github.com/scrapeless-ai/langchain-scrapeless/releases?expanded=true
24
+ Project-URL: Scrapeless Homepage, https://scrapeless.com
25
+ Project-URL: Source Code, https://github.com/scrapeless-ai/langchain-scrapeless/tree/main
26
+ Description-Content-Type: text/markdown
27
+
28
+ <div align="center">
29
+ <img width="180" src="https://app.scrapeless.com/assets/logo.svg" alt="Scrapeless logo">
30
+
31
+ LangChain Scrapeless: an all-in-one, highly scalable web scraping toolkit for enterprises and developers that also integrates with LangChainโ€™s AI tools. Maintained by [Scrapeless](https://app.scrapeless.com/passport/login?utm_source=github&utm_medium=langchain-scrapeless&utm_campaign=langchain-scrapeless).
32
+
33
+ [Scrapeless](https://app.scrapeless.com/passport/login?utm_source=github&utm_medium=langchain-scrapeless&utm_campaign=langchain-scrapeless) | [Documentation](https://docs.scrapeless.com) | [LangChain](https://langchain.com)
34
+
35
+ </div>
36
+
37
+ ---
38
+
39
+ **langchain-scrapeless** is designed for seamless integration with LangChain, enabling you to:
40
+
41
+ - Run custom scraping tasks using your own crawlers or scraping logic.
42
+ - Automate data extraction and processing workflows in Python.
43
+ - Manage and interact with datasets produced by your scraping jobs.
44
+ - Access scraping and data handling capabilities as LangChain tools, making them easy to compose with LLM-powered chains and agents.
45
+
46
+ ## ๐Ÿ“ฆ Installation
47
+
48
+ ```bash
49
+ pip install langchain-scrapeless
50
+ ```
51
+
52
+ ## โœ… Prerequisites
53
+
54
+ You should configure the credentials for the Scrapeless API in your environment variables.
55
+
56
+ - `SCRAPELESS_API_KEY`: Your Scrapeless API key.
57
+
58
+ If you don't have an API key, you can register at [here](https://app.scrapeless.com/passport/register?utm_source=github&utm_medium=langchain-scrapeless&utm_campaign=langchain-scrapeless) and learn how to get your API key in [Scrapeless documentation](https://docs.scrapeless.com/en/sdk/node-sdk/#quick-start).
59
+
60
+ ## ๐Ÿ› ๏ธ Available Tools
61
+
62
+ ### ๐Ÿ” DeepSerp
63
+
64
+ #### ๐ŸŒ ScrapelessDeepSerpGoogleSearchTool
65
+
66
+ Perform Google search queries and get the results.
67
+
68
+ ```python
69
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleSearchTool
70
+
71
+ tool = ScrapelessDeepSerpGoogleSearchTool()
72
+
73
+ # Basic usage
74
+ # result = tool.invoke("I want to know Scrapeless")
75
+ # print(result)
76
+
77
+ # Advanced usage
78
+ result = tool.invoke({
79
+ "q": "Scrapeless",
80
+ "hl": "en",
81
+ "google_domain": "google.com"
82
+ })
83
+ print(result)
84
+
85
+ # With LangChain
86
+ from langchain_openai import ChatOpenAI
87
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleSearchTool
88
+ from langgraph.prebuilt import create_react_agent
89
+
90
+ llm = ChatOpenAI()
91
+
92
+ tool = ScrapelessDeepSerpGoogleSearchTool()
93
+
94
+ # Use the tool with an agent
95
+ tools = [tool]
96
+ agent = create_react_agent(llm, tools)
97
+
98
+ for chunk in agent.stream(
99
+ {"messages": [("human", "I want to what is Scrapeless")]},
100
+ stream_mode="values"
101
+ ):
102
+ chunk["messages"][-1].pretty_print()
103
+ ```
104
+
105
+ You can visit [here](https://apidocs.scrapeless.com/doc-800321) to learn more customizations options.
106
+
107
+ #### ๐ŸŒ ScrapelessDeepSerpGoogleTrendsTool
108
+
109
+ Perform Google trends queries and get the results.
110
+
111
+ ```python
112
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleTrendsTool
113
+
114
+ tool = ScrapelessDeepSerpGoogleTrendsTool()
115
+
116
+ # Basic usage
117
+ # result = tool.invoke("Funny 2048,negamon monster trainer")
118
+ # print(result)
119
+
120
+ # Advanced usage
121
+ result = tool.invoke({
122
+ "q": "Scrapeless",
123
+ "data_type": "related_topics",
124
+ "hl": "en"
125
+ })
126
+ print(result)
127
+
128
+ # With LangChain
129
+ from langchain_openai import ChatOpenAI
130
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleTrendsTool
131
+ from langgraph.prebuilt import create_react_agent
132
+
133
+ llm = ChatOpenAI()
134
+
135
+ tool = ScrapelessDeepSerpGoogleTrendsTool()
136
+
137
+ # Use the tool with an agent
138
+ tools = [tool]
139
+ agent = create_react_agent(llm, tools)
140
+
141
+ for chunk in agent.stream(
142
+ {"messages": [("human", "I want to know the iphone keyword trends")]},
143
+ stream_mode="values"
144
+ ):
145
+ chunk["messages"][-1].pretty_print()
146
+
147
+ ```
148
+
149
+ You can visit [here](https://apidocs.scrapeless.com/doc-796980) to learn more customizations options.
150
+
151
+ ### ๐Ÿ”“ ScrapelessUniversalScrapingTool
152
+
153
+ Access any website at scale and say goodbye to blocks.
154
+
155
+ ```python
156
+ from langchain_scrapeless import ScrapelessUniversalScrapingTool
157
+
158
+ tool = ScrapelessUniversalScrapingTool()
159
+
160
+ # Basic usage
161
+ # result = tool.invoke("https://example.com")
162
+ # print(result)
163
+
164
+ # Advanced usage
165
+ result = tool.invoke({
166
+ "url": "https://exmaple.com",
167
+ "response_type": "markdown"
168
+ })
169
+ print(result)
170
+
171
+ # With LangChain
172
+ from langchain_openai import ChatOpenAI
173
+ from langchain_scrapeless import ScrapelessUniversalScrapingTool
174
+ from langgraph.prebuilt import create_react_agent
175
+
176
+ llm = ChatOpenAI()
177
+
178
+ tool = ScrapelessUniversalScrapingTool()
179
+
180
+ # Use the tool with an agent
181
+ tools = [tool]
182
+ agent = create_react_agent(llm, tools)
183
+
184
+ for chunk in agent.stream(
185
+ {"messages": [("human", "Use the scrapeless scraping tool to fetch https://www.scrapeless.com/en and extract the h1 tag.")]},
186
+ stream_mode="values"
187
+ ):
188
+ chunk["messages"][-1].pretty_print()
189
+ ```
190
+
191
+ You can visit [here](https://apidocs.scrapeless.com/api-12948840) to learn more customizations options.
192
+
193
+ ### ๐Ÿ•ท๏ธ Crawler
194
+
195
+ #### ๐ŸŒ ScrapelessCrawlerCrawlTool
196
+
197
+ Crawl a website and its linked pages to extract comprehensive data
198
+
199
+ ```python
200
+ from langchain_scrapeless import ScrapelessCrawlerCrawlTool
201
+
202
+ tool = ScrapelessCrawlerCrawlTool()
203
+
204
+ # Basic
205
+ # result = tool.invoke("https://example.com")
206
+ # print(result)
207
+
208
+ # Advanced usage
209
+ result = tool.invoke({
210
+ "url": "https://exmaple.com",
211
+ "limit": 4
212
+ })
213
+ print(result)
214
+
215
+ # With LangChain
216
+ from langchain_openai import ChatOpenAI
217
+ from langchain_scrapeless import ScrapelessCrawlerCrawlTool
218
+ from langgraph.prebuilt import create_react_agent
219
+
220
+ llm = ChatOpenAI()
221
+
222
+ tool = ScrapelessCrawlerCrawlTool()
223
+
224
+ # Use the tool with an agent
225
+ tools = [tool]
226
+ agent = create_react_agent(llm, tools)
227
+
228
+ for chunk in agent.stream(
229
+ {"messages": [("human", "Use the scrapeless crawler crawl tool to crawl the website https://example.com and output the markdown content as a string.")]},
230
+ stream_mode="values"
231
+ ):
232
+ chunk["messages"][-1].pretty_print()
233
+ ```
234
+
235
+ You can visit [here](https://apidocs.scrapeless.com/api-17509010) to learn more customizations options.
236
+
237
+ #### ๐ŸŒ ScrapelessCrawlerScrapeTool
238
+
239
+ Extract data from a single or multiple webpages.
240
+
241
+ ```python
242
+ from langchain_scrapeless import ScrapelessCrawlerScrapeTool
243
+
244
+ tool = ScrapelessCrawlerScrapeTool()
245
+
246
+ result = tool.invoke({
247
+ "urls": ["https://exmaple.com", "https://www.scrapeless.com/en"],
248
+ "formats": ["markdown"]
249
+ })
250
+ print(result)
251
+
252
+ # With LangChain
253
+ from langchain_openai import ChatOpenAI
254
+ from langchain_scrapeless import ScrapelessCrawlerScrapeTool
255
+ from langgraph.prebuilt import create_react_agent
256
+
257
+ llm = ChatOpenAI()
258
+
259
+ tool = ScrapelessCrawlerScrapeTool()
260
+
261
+ # Use the tool with an agent
262
+ tools = [tool]
263
+ agent = create_react_agent(llm, tools)
264
+
265
+ for chunk in agent.stream(
266
+ {"messages": [("human", "Use the scrapeless crawler scrape tool to get the website content of https://example.com and output the html content as a string.")]},
267
+ stream_mode="values"
268
+ ):
269
+ chunk["messages"][-1].pretty_print()
270
+ ```
271
+
@@ -0,0 +1,243 @@
1
+ <div align="center">
2
+ <img width="180" src="https://app.scrapeless.com/assets/logo.svg" alt="Scrapeless logo">
3
+
4
+ LangChain Scrapeless: an all-in-one, highly scalable web scraping toolkit for enterprises and developers that also integrates with LangChainโ€™s AI tools. Maintained by [Scrapeless](https://app.scrapeless.com/passport/login?utm_source=github&utm_medium=langchain-scrapeless&utm_campaign=langchain-scrapeless).
5
+
6
+ [Scrapeless](https://app.scrapeless.com/passport/login?utm_source=github&utm_medium=langchain-scrapeless&utm_campaign=langchain-scrapeless) | [Documentation](https://docs.scrapeless.com) | [LangChain](https://langchain.com)
7
+
8
+ </div>
9
+
10
+ ---
11
+
12
+ **langchain-scrapeless** is designed for seamless integration with LangChain, enabling you to:
13
+
14
+ - Run custom scraping tasks using your own crawlers or scraping logic.
15
+ - Automate data extraction and processing workflows in Python.
16
+ - Manage and interact with datasets produced by your scraping jobs.
17
+ - Access scraping and data handling capabilities as LangChain tools, making them easy to compose with LLM-powered chains and agents.
18
+
19
+ ## ๐Ÿ“ฆ Installation
20
+
21
+ ```bash
22
+ pip install langchain-scrapeless
23
+ ```
24
+
25
+ ## โœ… Prerequisites
26
+
27
+ You should configure the credentials for the Scrapeless API in your environment variables.
28
+
29
+ - `SCRAPELESS_API_KEY`: Your Scrapeless API key.
30
+
31
+ If you don't have an API key, you can register at [here](https://app.scrapeless.com/passport/register?utm_source=github&utm_medium=langchain-scrapeless&utm_campaign=langchain-scrapeless) and learn how to get your API key in [Scrapeless documentation](https://docs.scrapeless.com/en/sdk/node-sdk/#quick-start).
32
+
33
+ ## ๐Ÿ› ๏ธ Available Tools
34
+
35
+ ### ๐Ÿ” DeepSerp
36
+
37
+ #### ๐ŸŒ ScrapelessDeepSerpGoogleSearchTool
38
+
39
+ Perform Google search queries and get the results.
40
+
41
+ ```python
42
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleSearchTool
43
+
44
+ tool = ScrapelessDeepSerpGoogleSearchTool()
45
+
46
+ # Basic usage
47
+ # result = tool.invoke("I want to know Scrapeless")
48
+ # print(result)
49
+
50
+ # Advanced usage
51
+ result = tool.invoke({
52
+ "q": "Scrapeless",
53
+ "hl": "en",
54
+ "google_domain": "google.com"
55
+ })
56
+ print(result)
57
+
58
+ # With LangChain
59
+ from langchain_openai import ChatOpenAI
60
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleSearchTool
61
+ from langgraph.prebuilt import create_react_agent
62
+
63
+ llm = ChatOpenAI()
64
+
65
+ tool = ScrapelessDeepSerpGoogleSearchTool()
66
+
67
+ # Use the tool with an agent
68
+ tools = [tool]
69
+ agent = create_react_agent(llm, tools)
70
+
71
+ for chunk in agent.stream(
72
+ {"messages": [("human", "I want to what is Scrapeless")]},
73
+ stream_mode="values"
74
+ ):
75
+ chunk["messages"][-1].pretty_print()
76
+ ```
77
+
78
+ You can visit [here](https://apidocs.scrapeless.com/doc-800321) to learn more customizations options.
79
+
80
+ #### ๐ŸŒ ScrapelessDeepSerpGoogleTrendsTool
81
+
82
+ Perform Google trends queries and get the results.
83
+
84
+ ```python
85
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleTrendsTool
86
+
87
+ tool = ScrapelessDeepSerpGoogleTrendsTool()
88
+
89
+ # Basic usage
90
+ # result = tool.invoke("Funny 2048,negamon monster trainer")
91
+ # print(result)
92
+
93
+ # Advanced usage
94
+ result = tool.invoke({
95
+ "q": "Scrapeless",
96
+ "data_type": "related_topics",
97
+ "hl": "en"
98
+ })
99
+ print(result)
100
+
101
+ # With LangChain
102
+ from langchain_openai import ChatOpenAI
103
+ from langchain_scrapeless import ScrapelessDeepSerpGoogleTrendsTool
104
+ from langgraph.prebuilt import create_react_agent
105
+
106
+ llm = ChatOpenAI()
107
+
108
+ tool = ScrapelessDeepSerpGoogleTrendsTool()
109
+
110
+ # Use the tool with an agent
111
+ tools = [tool]
112
+ agent = create_react_agent(llm, tools)
113
+
114
+ for chunk in agent.stream(
115
+ {"messages": [("human", "I want to know the iphone keyword trends")]},
116
+ stream_mode="values"
117
+ ):
118
+ chunk["messages"][-1].pretty_print()
119
+
120
+ ```
121
+
122
+ You can visit [here](https://apidocs.scrapeless.com/doc-796980) to learn more customizations options.
123
+
124
+ ### ๐Ÿ”“ ScrapelessUniversalScrapingTool
125
+
126
+ Access any website at scale and say goodbye to blocks.
127
+
128
+ ```python
129
+ from langchain_scrapeless import ScrapelessUniversalScrapingTool
130
+
131
+ tool = ScrapelessUniversalScrapingTool()
132
+
133
+ # Basic usage
134
+ # result = tool.invoke("https://example.com")
135
+ # print(result)
136
+
137
+ # Advanced usage
138
+ result = tool.invoke({
139
+ "url": "https://exmaple.com",
140
+ "response_type": "markdown"
141
+ })
142
+ print(result)
143
+
144
+ # With LangChain
145
+ from langchain_openai import ChatOpenAI
146
+ from langchain_scrapeless import ScrapelessUniversalScrapingTool
147
+ from langgraph.prebuilt import create_react_agent
148
+
149
+ llm = ChatOpenAI()
150
+
151
+ tool = ScrapelessUniversalScrapingTool()
152
+
153
+ # Use the tool with an agent
154
+ tools = [tool]
155
+ agent = create_react_agent(llm, tools)
156
+
157
+ for chunk in agent.stream(
158
+ {"messages": [("human", "Use the scrapeless scraping tool to fetch https://www.scrapeless.com/en and extract the h1 tag.")]},
159
+ stream_mode="values"
160
+ ):
161
+ chunk["messages"][-1].pretty_print()
162
+ ```
163
+
164
+ You can visit [here](https://apidocs.scrapeless.com/api-12948840) to learn more customizations options.
165
+
166
+ ### ๐Ÿ•ท๏ธ Crawler
167
+
168
+ #### ๐ŸŒ ScrapelessCrawlerCrawlTool
169
+
170
+ Crawl a website and its linked pages to extract comprehensive data
171
+
172
+ ```python
173
+ from langchain_scrapeless import ScrapelessCrawlerCrawlTool
174
+
175
+ tool = ScrapelessCrawlerCrawlTool()
176
+
177
+ # Basic
178
+ # result = tool.invoke("https://example.com")
179
+ # print(result)
180
+
181
+ # Advanced usage
182
+ result = tool.invoke({
183
+ "url": "https://exmaple.com",
184
+ "limit": 4
185
+ })
186
+ print(result)
187
+
188
+ # With LangChain
189
+ from langchain_openai import ChatOpenAI
190
+ from langchain_scrapeless import ScrapelessCrawlerCrawlTool
191
+ from langgraph.prebuilt import create_react_agent
192
+
193
+ llm = ChatOpenAI()
194
+
195
+ tool = ScrapelessCrawlerCrawlTool()
196
+
197
+ # Use the tool with an agent
198
+ tools = [tool]
199
+ agent = create_react_agent(llm, tools)
200
+
201
+ for chunk in agent.stream(
202
+ {"messages": [("human", "Use the scrapeless crawler crawl tool to crawl the website https://example.com and output the markdown content as a string.")]},
203
+ stream_mode="values"
204
+ ):
205
+ chunk["messages"][-1].pretty_print()
206
+ ```
207
+
208
+ You can visit [here](https://apidocs.scrapeless.com/api-17509010) to learn more customizations options.
209
+
210
+ #### ๐ŸŒ ScrapelessCrawlerScrapeTool
211
+
212
+ Extract data from a single or multiple webpages.
213
+
214
+ ```python
215
+ from langchain_scrapeless import ScrapelessCrawlerScrapeTool
216
+
217
+ tool = ScrapelessCrawlerScrapeTool()
218
+
219
+ result = tool.invoke({
220
+ "urls": ["https://exmaple.com", "https://www.scrapeless.com/en"],
221
+ "formats": ["markdown"]
222
+ })
223
+ print(result)
224
+
225
+ # With LangChain
226
+ from langchain_openai import ChatOpenAI
227
+ from langchain_scrapeless import ScrapelessCrawlerScrapeTool
228
+ from langgraph.prebuilt import create_react_agent
229
+
230
+ llm = ChatOpenAI()
231
+
232
+ tool = ScrapelessCrawlerScrapeTool()
233
+
234
+ # Use the tool with an agent
235
+ tools = [tool]
236
+ agent = create_react_agent(llm, tools)
237
+
238
+ for chunk in agent.stream(
239
+ {"messages": [("human", "Use the scrapeless crawler scrape tool to get the website content of https://example.com and output the html content as a string.")]},
240
+ stream_mode="values"
241
+ ):
242
+ chunk["messages"][-1].pretty_print()
243
+ ```
@@ -0,0 +1,41 @@
1
+ from importlib import metadata
2
+
3
+ from langchain_scrapeless.tools.clawer import (
4
+ ScrapelessCrawlerCrawlTool,
5
+ ScrapelessCrawlerScrapeTool,
6
+ )
7
+ from langchain_scrapeless.tools.scrapeless_universal_scraping import (
8
+ ScrapelessUniversalScrapingTool,
9
+ )
10
+ from langchain_scrapeless.tools.scraping_api import (
11
+ ScrapelessDeepSerpGoogleSearchTool,
12
+ ScrapelessDeepSerpGoogleTrendsTool,
13
+ )
14
+ from langchain_scrapeless.wrappers import (
15
+ ScrapelessAPIWrapper,
16
+ ScrapelessCrawlerCrawlAPIWrapper,
17
+ ScrapelessCrawlerScrapeAPIWrapper,
18
+ ScrapelessDeepSerpAPIWrapper,
19
+ ScrapelessUniversalScrapingAPIWrapper,
20
+ )
21
+
22
+ try:
23
+ __version__ = metadata.version(__package__)
24
+ except metadata.PackageNotFoundError:
25
+ # Case where package metadata is not available.
26
+ __version__ = ""
27
+ del metadata # optional, avoids polluting the results of dir(__package__)
28
+
29
+ __all__ = [
30
+ "ScrapelessDeepSerpGoogleSearchTool",
31
+ "ScrapelessDeepSerpGoogleTrendsTool",
32
+ "ScrapelessUniversalScrapingTool",
33
+ "ScrapelessAPIWrapper",
34
+ "ScrapelessUniversalScrapingAPIWrapper",
35
+ "ScrapelessCrawlerScrapeAPIWrapper",
36
+ "ScrapelessCrawlerCrawlAPIWrapper",
37
+ "ScrapelessDeepSerpAPIWrapper",
38
+ "ScrapelessCrawlerScrapeTool",
39
+ "ScrapelessCrawlerCrawlTool",
40
+ "__version__",
41
+ ]
@@ -0,0 +1 @@
1
+ REQUESTS_TIMEOUT_SECS: float = 30000 / 1000.0
@@ -0,0 +1,8 @@
1
+ ERROR_SCRAPELESS_TOKEN_ENV_VAR_NOT_SET = (
2
+ "SCRAPELESS_API_TOKEN environment variable is not set."
3
+ " Please set it to your Scrapeless API token "
4
+ "by using `os.environ['SCRAPELESS_API_TOKEN'] = 'YOUR_SCRAPELESS_API_TOKEN'"
5
+ " in your code or pass it as environment variable."
6
+ " To pass it as environment variable, you can use the following command:"
7
+ ' `SCRAPELESS_API_TOKEN="YOUR_SCRAPELESS_API_TOKEN" python your_script.py`'
8
+ )
@@ -0,0 +1,14 @@
1
+ from .clawer import ScrapelessCrawlerCrawlTool, ScrapelessCrawlerScrapeTool
2
+ from .scrapeless_universal_scraping import ScrapelessUniversalScrapingTool
3
+ from .scraping_api import (
4
+ ScrapelessDeepSerpGoogleSearchTool,
5
+ ScrapelessDeepSerpGoogleTrendsTool,
6
+ )
7
+
8
+ __all__ = [
9
+ "ScrapelessUniversalScrapingTool",
10
+ "ScrapelessDeepSerpGoogleSearchTool",
11
+ "ScrapelessDeepSerpGoogleTrendsTool",
12
+ "ScrapelessCrawlerScrapeTool",
13
+ "ScrapelessCrawlerCrawlTool",
14
+ ]
@@ -0,0 +1,4 @@
1
+ from .crawl import ScrapelessCrawlerCrawlTool
2
+ from .scrape import ScrapelessCrawlerScrapeTool
3
+
4
+ __all__ = ["ScrapelessCrawlerScrapeTool", "ScrapelessCrawlerCrawlTool"]