diff --git a/README.md b/README.md index 3b4d3d0..e94ff3e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ pip install brightdata-sdk ## Configuration -Get your API Token from the [Bright Data Control Panel](https://brightdata.com/cp/api_keys): +Get your API Token from the [Bright Data Control Panel](https://brightdata.com/cp/setting/users): ```bash export BRIGHTDATA_API_TOKEN="your_api_token_here" @@ -194,7 +194,7 @@ async with BrightDataClient() as client: num_results=10, ) for item in result.data: - print(f"[{item['relevance_score']:.2f}] {item['title']} {item['url']}") + print(f"[{item['relevance_score']:.2f}] {item['title']} {item['link']}") ``` For long-running discoveries, trigger and poll separately: diff --git a/src/brightdata/client.py b/src/brightdata/client.py index 08aae05..9f99fd6 100644 --- a/src/brightdata/client.py +++ b/src/brightdata/client.py @@ -211,7 +211,7 @@ def _load_token(self, token: Optional[str]) -> str: f"Provide token in one of these ways:\n" f" 1. Pass as parameter: BrightDataClient(token='your_token')\n" f" 2. Set environment variable: {self.TOKEN_ENV_VAR}\n\n" - f"Get your API token from: https://brightdata.com/cp/api_keys" + f"Get your API token from: https://brightdata.com/cp/setting/users" ) async def _ensure_zones(self) -> None: