Skip to content

Commit ddcd726

Browse files
authored
Update residential_random.js
1 parent 5cdc213 commit ddcd726

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/puppeteer-proxy-integration-js/residential_random.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ const puppeteer = require('puppeteer');
3232
password: 'PASSWORD'
3333
});
3434

35-
// This page simply returns the IP address
36-
await page.goto('https://ip.oxylabs.io/');
35+
// This page returns the IP address and location details
36+
await page.goto('https://ip.oxylabs.io/location');
3737

3838
// Print the response from the page
39-
// This will print the IP address of the proxy
39+
// This will print the location details of the proxy
4040
const extractedText = await page.$eval('*', (el) => el.innerText);
4141
console.log(extractedText);
4242
} catch (e) {

0 commit comments

Comments
 (0)