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
"| `ScraperAPITool` | **Raw** `/` | Grab the HTML (or text/markdown) of _any_ web page |\n",
15
-
"| `ScraperAPIGoogleSearchTool` | **Structured** `/structured/google/search` | Get structured Google Search SERP data |\n",
16
-
"| `ScraperAPIAmazonSearchTool` | **Structured** `/structured/amazon/search` | Get structured Amazon product-search data |\n",
12
+
"The `langchain-scraperapi` package adds three ready-to-use LangChain tools backed by the [ScraperAPI](https://www.scraperapi.com/) service:\n",
17
13
"\n",
18
-
"The Python implementation lives in the **`langchain-scraperapi`** package and is shown in the attached source files :contentReference[oaicite:0]{index=0}."
14
+
"| Tool class | Use it to |\n",
15
+
"|------------|------------------|\n",
16
+
"| `ScraperAPITool` | Grab the HTML/text/markdown of any web page |\n",
17
+
"| `ScraperAPIGoogleSearchTool` | Get structured Google Search SERP data |\n",
18
+
"| `ScraperAPIAmazonSearchTool` | Get structured Amazon product-search data |\n",
"Structured product results via `/structured/amazon/search`.\n",
136
173
"\n",
@@ -167,9 +204,9 @@
167
204
"id": "607eb8c8",
168
205
"metadata": {},
169
206
"source": [
170
-
"## Using the tools in an AI agent.\n",
207
+
"### Example: Make an AI agent that can browse the web\n",
171
208
"\n",
172
-
"Here is an example of using the tools in an agent. This gives the AI the ability to browse any website, summarize articles, and click on links to navigate between pages."
209
+
"Here is an example of using the tools in an AI agent. The `ScraperAPITool` gives the AI the ability to browse any website, summarize articles, and click on links to navigate between pages."
173
210
]
174
211
},
175
212
{
@@ -210,12 +247,14 @@
210
247
"source": [
211
248
"## Further reading\n",
212
249
"\n",
213
-
"* **ScraperAPI – request customisation** \n",
250
+
"Below you can find more information on additional parameters to the tools to customize your requests.\n",
Included are some examples of agents that can be built using this package.
2
+
3
+
First, create a .`env` file with `SCRAPERAPI_API_KEY` and `OPENAI_API_KEY`.
4
+
5
+
The web browsing and Amazon search agents use Streamlit to create a Chatbot interface. To run them, first `pip install streamlit` and then launch using `streamlit run web_browsing_agent.py`.
("system", "You are a helpful assistant that can browse Amazon for users. When asked to browse the website or look for a product, use the ScraperAPIAmazonSearchTool."),
0 commit comments