File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pip install scrapegraph-py==2.0.0
1313| Area | v1 | v2 |
1414| ------| ----| ----|
1515| ** Package version** | 1.x | 2.0.0 |
16- | ** API base URL** | ` https://api.scrapegraphai.com/v1 ` | ` https://api.scrapegraphai.com/api/v1 ` |
16+ | ** API base URL** | ` https://api.scrapegraphai.com/v1 ` | ` https://api.scrapegraphai.com/api/v2 ` |
1717| ** Auth header** | ` SGAI-APIKEY: <key> ` | ` Authorization: Bearer <key> ` (+ ` SGAI-APIKEY ` for backwards compat) |
1818| ** SDK version header** | None | ` X-SDK-Version: python@2.0.0 ` |
1919| ** Client init** | ` Client(api_key=...) ` | ` Client(api_key=..., base_url=...) ` |
@@ -50,7 +50,7 @@ from scrapegraph_py import Client
5050
5151client = Client(
5252 api_key = " sgai-..." ,
53- base_url = " https://api.scrapegraphai.com/api/v1 " , # optional override
53+ base_url = " https://api.scrapegraphai.com/api/v2 " , # optional override
5454 verify_ssl = True ,
5555 timeout = 30 ,
5656 max_retries = 3 ,
Original file line number Diff line number Diff line change 33"""
44
55VERSION = "2.0.0"
6- API_BASE_URL = "https://api.scrapegraphai.com/api/v1 "
6+ API_BASE_URL = "https://api.scrapegraphai.com/api/v2 "
77DEFAULT_HEADERS = {
88 "accept" : "application/json" ,
99 "Content-Type" : "application/json" ,
You can’t perform that action at this time.
0 commit comments