File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pip install brightdata-sdk
1313
1414## Configuration
1515
16- Get your API Token from the [ Bright Data Control Panel] ( https://brightdata.com/cp/api_keys ) :
16+ Get your API Token from the [ Bright Data Control Panel] ( https://brightdata.com/cp/setting/users ) :
1717
1818``` bash
1919export BRIGHTDATA_API_TOKEN=" your_api_token_here"
@@ -194,7 +194,7 @@ async with BrightDataClient() as client:
194194 num_results = 10 ,
195195 )
196196 for item in result.data:
197- print (f " [ { item[' relevance_score' ]:.2f } ] { item[' title' ]} { item[' url ' ]} " )
197+ print (f " [ { item[' relevance_score' ]:.2f } ] { item[' title' ]} { item[' link ' ]} " )
198198```
199199
200200For long-running discoveries, trigger and poll separately:
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ def _load_token(self, token: Optional[str]) -> str:
211211 f"Provide token in one of these ways:\n "
212212 f" 1. Pass as parameter: BrightDataClient(token='your_token')\n "
213213 f" 2. Set environment variable: { self .TOKEN_ENV_VAR } \n \n "
214- f"Get your API token from: https://brightdata.com/cp/api_keys "
214+ f"Get your API token from: https://brightdata.com/cp/setting/users "
215215 )
216216
217217 async def _ensure_zones (self ) -> None :
You can’t perform that action at this time.
0 commit comments