Explore essential CDP functions for Browser API, from setting cookies to country targeting. Learn to optimize web scraping with these common Puppeteer and Playwright commands.
Get Page HTML
Click on element
Scroll to page bottom
Take Screenshot
Set Cookies
Blocking Endpoints
Country Targeting
-country
flag, after your “USER” credentials within the Bright Data endpoint, followed by the 2-letter ISO code for that country.-country-us
to the Bright Data endpoint within our script, so our request will originate from the United States (“us”).-country-eu
Requests sent using -country-eu
, will use IPs from one of the countries below which are included automatically within “eu”: