Skip to content

Commit 410c7f7

Browse files
authored
Update SDKdemo_search.py
1 parent 7170855 commit 410c7f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SDKdemo_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from brightdata import bdclient
22

3-
bd = bdclient(api_token="your-api-token") #can also be taken from .env file
3+
client = bdclient(api_token="your-api-token") #can also be taken from .env file
44

55
query = ["iphone 16", "coffee maker", "portable projector", "sony headphones",
66
"laptop stand", "power bank", "running shoes", "android tablet",
77
"hiking backpack", "dash cam"]
88

9-
results = bd.search(query=query, search_engine="google", format="json")
9+
results = client.search(query=query, search_engine="google", format="json") # Try to hover over the "search" function to see what available parameters you can add
1010

1111
bd.download_content(results, filename="search_results.json", format="json")

0 commit comments

Comments
 (0)