Skip to content

Commit 06640a3

Browse files
authored
Update and rename SDKdemo_scrape.py to SDKdemo_search.py
1 parent 8b2a286 commit 06640a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
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="73fa4ac2-4487-4509-9250-d902e58985fd")
3+
bd = 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

99
results = bd.search(query=query, search_engine="google", format="json")
1010

11-
bd.download_content(results, filename="search_results.json", format="json")
11+
bd.download_content(results, filename="search_results.json", format="json")

0 commit comments

Comments
 (0)