Skip to content

Commit 569e115

Browse files
עידן וילנסקיעידן וילנסקי
authored andcommitted
Added unit test and fixed user-agent observability
2 parents 769aa14 + 1c497e3 commit 569e115

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
<p align="center">
2-
<a href="https://brightdata.com/">
3-
<img src="https://mintlify.s3.us-west-1.amazonaws.com/brightdata/logo/light.svg" width="300" alt="Bright Data Logo">
4-
</a>
5-
</p>
61

7-
<h1 align="center">Python SDK</h1>
8-
<h3 align="center">A Python SDK for the Bright Data's Data extraction and Web unlocking tools, providing easy-to-use scalable methods for web scraping, search engine result parsing, and data management.</h3>
2+
<img width="1300" height="200" alt="sdk-banner(1)" src="https://github.com/user-attachments/assets/c4a7857e-10dd-420b-947a-ed2ea5825cb8" />
3+
4+
<h3 align="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>
95

106

117
For a quick start you can try to run our example files in this repositories under the "Codespace" section.
@@ -17,23 +13,16 @@ For a quick start you can try to run our example files in this repositories unde
1713
- **Multiple Search Engines**: Support for Google, Bing, and Yandex
1814
- **Parallel Processing**: Concurrent processing for multiple URLs or queries
1915
- **Robust Error Handling**: Comprehensive error handling with retry logic
20-
- **Input Validation**: Automatic validation of URLs, zone names, and parameters
2116
- **Zone Management**: Automatic zone creation and management
2217
- **Multiple Output Formats**: JSON, raw HTML, markdown, and more
2318

2419
## Installation
20+
To install the package, open your terminal:
21+
> [!NOTE]
22+
> If you are using macOS you will need to open a virtual environment for your project first.
2523
26-
### From GitHub
2724
```bash
28-
# Create and activate a virtual environment
29-
30-
# Install directly from GitHub (recommended)
31-
pip install git+https://github.com/brightdata/bright-data-sdk-python.git
32-
33-
# Or clone and install locally
34-
git clone https://github.com/brightdata/bright-data-sdk-python.git
35-
cd bright-data-sdk-python
36-
pip install .
25+
pip install brightdata-sdk
3726
```
3827

3928
## Quick Start
@@ -91,9 +80,7 @@ queries = ["pizza", "restaurants", "delivery"]
9180
results = client.search(queries)
9281

9382
# Different search engines
94-
result = client.search("pizza", search_engine="google")
95-
result = client.search("pizza", search_engine="bing")
96-
result = client.search("pizza", search_engine="yandex")
83+
result = client.search("pizza", search_engine="google") # search_engine can also be set to "yandex" or "bing"
9784

9885
# Custom options
9986
results = client.search(
@@ -217,6 +204,18 @@ except Exception as e:
217204
2. Create or access your API credentials
218205
3. Copy your API token and paste it in your .env or code file
219206

207+
## Development
208+
209+
For development installation, open your terminal:
210+
211+
```bash
212+
git clone https://github.com/brightdata/bright-data-sdk-python.git
213+
214+
# If you are using Mac you will need to open a virtual environment for your project first.
215+
cd bright-data-sdk-python
216+
pip install .
217+
```
218+
220219
## License
221220

222221
This project is licensed under the MIT License.

0 commit comments

Comments
 (0)