Skip to content

Commit 7e83fd4

Browse files
authored
Update README.md
1 parent 67722a1 commit 7e83fd4

File tree

1 file changed

+2
-45
lines changed

1 file changed

+2
-45
lines changed

README.md

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -166,29 +166,11 @@ Save content to local file.
166166
- `format`: File format ("json", "csv", "txt", etc.)
167167
```
168168

169-
#### list_zones()
170-
171-
List all active zones in your Bright Data account.
172-
173169
## Error Handling
174170

175-
The SDK includes built-in input validation and retry logic:
176-
```python
177-
try:
178-
result = client.scrape("https://example.com")
179-
except ValueError as e:
180-
print(f"Invalid input: {e}")
181-
except Exception as e:
182-
print(f"API error: {e}")
183-
```
184-
185-
## Production Features
171+
The SDK includes built-in input validation and retry logic
186172

187-
- **Retry Logic**: Automatic retries with exponential backoff for network failures
188-
- **Input Validation**: Validates URLs, zone names, and parameters
189-
- **Connection Pooling**: Efficient HTTP connection management
190-
- **Logging**: Comprehensive logging for debugging and monitoring
191-
- **Zone Auto-Creation**: Automatically creates required zones if they don't exist
173+
In case of zone related problems, use the **list_zones()** function to check your active zones, and check that your [**account settings**](https://brightdata.com/cp/setting/users), to verify that your API key have **"admin permissions"**.
192174

193175
## Configuration Constants
194176

@@ -200,31 +182,6 @@ except Exception as e:
200182
| `MAX_RETRIES` | `3` | Retry attempts on failure |
201183
| `RETRY_BACKOFF_FACTOR` | `1.5` | Exponential backoff multiplier |
202184

203-
## Getting Your API Token
204-
205-
1. Sign up at [brightdata.com](https://brightdata.com/), and navigate to your dashboard
206-
2. Create or access your API credentials
207-
3. Copy your API token and paste it in your .env or code file
208-
209-
## Development
210-
211-
For development installation, open your terminal:
212-
213-
```bash
214-
git clone https://github.com/brightdata/bright-data-sdk-python.git
215-
216-
# If you are using Mac you will need to open a virtual environment for your project first.
217-
cd bright-data-sdk-python
218-
pip install .
219-
```
220-
221-
> [!IMPORTANT]
222-
> Go to your [**account settings**](https://brightdata.com/cp/setting/users), to verify that your API key have **"admin permissions"**.
223-
224-
## License
225-
226-
This project is licensed under the MIT License.
227-
228185
## Support
229186

230187
For any issues, contact [Bright Data support](https://brightdata.com/contact), or open an issue in this repository.

0 commit comments

Comments
 (0)