Skip to content

Commit 26a810e

Browse files
authored
Merge pull request #19 from ScrapeGraphAI/fix-the-smartcrawler
update the smartcrawler to crawl
2 parents 9b08d2f + 398b46e commit 26a810e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/smartcrawler.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from scrapegraph_py import Client
2828

2929
client = Client(api_key="your-api-key")
3030

31-
response = client.smartcrawler(
31+
response = client.crawl(
3232
url="https://scrapegraphai.com/",
3333
prompt="Extract info about the company",
3434
depth=2,
@@ -294,7 +294,7 @@ class CompanyData(BaseModel):
294294
description: str = Field(description="Description")
295295
features: list[str] = Field(description="Features")
296296

297-
response = client.smartcrawler(
297+
response = client.crawl(
298298
url="https://example.com",
299299
prompt="Extract company info",
300300
schema=CompanyData,
@@ -330,7 +330,7 @@ from scrapegraph_py import AsyncClient
330330

331331
async def main():
332332
async with AsyncClient(api_key="your-api-key") as client:
333-
task = await client.smartcrawler(
333+
task = await client.crawl(
334334
url="https://scrapegraphai.com/",
335335
prompt="Extract info about the company",
336336
depth=2,

0 commit comments

Comments
 (0)