Skip to content

Commit c14eb8e

Browse files
committed
add new example on readme
1 parent d81ab09 commit c14eb8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scrapegraph-py/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ The SDK provides four main functionalities:
3737
### Basic Web Scraping
3838

3939
```python
40-
from scrapegraph_py import ScrapeGraphClient, scrape
41-
from dotenv import load_dotenv
4240
import os
41+
from scrapegraph_py import ScrapeGraphClient, smart_scraper
42+
from dotenv import load_dotenv
4343

4444
load_dotenv()
4545
api_key = os.getenv("SCRAPEGRAPH_API_KEY")
@@ -48,7 +48,7 @@ client = ScrapeGraphClient(api_key)
4848
url = "https://scrapegraphai.com/"
4949
prompt = "What does the company do?"
5050

51-
result = scrape(client, url, prompt)
51+
result = smart_scraper(client, url, prompt)
5252
print(result)
5353
```
5454

0 commit comments

Comments
 (0)