File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ from scrapegraph_py import Client
2828
2929client = 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
331331async 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 ,
You can’t perform that action at this time.
0 commit comments