You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h3align="center">A Python SDK for the Bright Data's Data extraction and Web unlocking tools, providing easy-to-use scalable methods for web scraping, web searches and more.</h3>
5
-
6
-
For a quick start run this repo's example files "Codespace" section.
4
+
```python
5
+
pip install brightdata-sdk
6
+
```
7
+
<h3align="center">A Python SDK by Bright Data, providing easy-to-use scalable methods for web search and scraping.</h3>
8
+
<p></p>
7
9
8
10
## Features
9
11
@@ -20,8 +22,8 @@ To install the package, open your terminal:
20
22
21
23
```python
22
24
pip install brightdata-sdk
23
-
# If using macOS, first open a virtual environment for your project.
24
25
```
26
+
> If using macOS, first open a virtual environment for your project
25
27
26
28
## Quick Start
27
29
@@ -97,46 +99,27 @@ result = client.scrape(
97
99
```python
98
100
# Download scraped content
99
101
data = client.scrape("https://example.com")
100
-
client.download_content(data, "results.json", "json") # Auto-generate filename if not specified
-`format`: File format ("json", "csv", "txt", etc.)
167
145
```
168
146
169
-
## Error Handling
170
-
171
-
The SDK includes built-in input validation and retry logic
172
-
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"**.
The SDK includes built-in input validation and retry logic
210
+
211
+
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"**.
212
+
213
+
</details>
214
+
185
215
## Support
186
216
187
217
For any issues, contact [Bright Data support](https://brightdata.com/contact), or open an issue in this repository.
0 commit comments