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
| **Scrape every website** | `scrape` | Scrape every website using Bright's scraping and unti bot-detection capabilities
15
+
| **Web search** | `search` | Search google and other search engines by query (supports batch searches)
16
+
| **Search chatGPT** | `search_chatGPT` | Prompt chatGPT and scrape its answers, support multiple inputs and follow-up prompts
17
+
| **Search linkedin** | `search_linkedin.posts()`, `search_linkedin.jobs()`, `search_linkedin.profiles()` | Search LinkedIn by specific queries, and recieve structured data
18
+
| **Scrape linkedin** | `scrape_linkedin.posts()`, `scrape_linkedin.jobs()`, `scrape_linkedin.profiles()`, `scrape_linkedin.companies()` | Scrape LinkedIn and recieve structured data
19
+
| **Download functions** | `download_snapshot`, `download_content` | Download content for both sync and async requests
20
+
| **Client class** | `bdclient` | Handles authentication, automatic zone creation and managment, and options for robust error handling
21
+
| **Parallel processing** | **all functions** | All functions use Concurrent processing for multiple URLs or queries, and support multiple Output Formats
19
22
20
23
## Installation
21
24
To install the package, open your terminal:
@@ -37,70 +40,89 @@ from brightdata import bdclient
37
40
client = bdclient(api_token="your_api_token_here") # can also be defined as BRIGHTDATA_API_TOKEN in your .env file
38
41
```
39
42
40
-
Or you can configure a custom zone name
43
+
### 2. Try usig one of the functions
41
44
45
+
#### `Search()`
42
46
```python
43
-
client = bdclient(
44
-
api_token="your_token",
45
-
auto_create_zones=False, # Else it creates the Zone automatically
46
-
web_unlocker_zone="custom_zone",
47
-
serp_zone="custom_serp_zone"
48
-
)
49
-
50
-
```
51
-
52
-
### 2. Search Engine Results
53
-
54
-
```python
55
-
# Single search query
47
+
# Simple single query search
56
48
result = client.search("pizza restaurants")
57
49
58
-
#Multiple queries (parallel processing)
50
+
#Try using multiple queries (parallel processing), with custom configuration
59
51
queries = ["pizza", "restaurants", "delivery"]
60
-
results = client.search(queries)
61
-
62
-
# Different search engines
63
-
result = client.search("pizza", search_engine="google") # search_engine can also be set to "yandex" or "bing"
64
-
65
-
# Custom options
66
52
results = client.search(
67
-
["pizza", "sushi"],
53
+
queries,
54
+
search_engine="bing",
68
55
country="gb",
69
56
format="raw"
70
57
)
71
58
```
72
-
73
-
> [!TIP]
74
-
> Hover over the "search" or each function in the package, to see all its available parameters.
0 commit comments