I have a VPS with a /48 ipv6 block, let's say 1234:1234:1234::/48.
Normally if I want to make a GET request with axios that rotates through the IP block I would do the following:
const http = require('http')
const https = require('https')
const options = { localAddress: utils.getRandomIPv6("1234:1234:1234::/48"), family: 6 }
const httpAgent = new http.Agent(options)
const httpsAgent = new https.Agent(options)
axios.get('https://example.com/', { httpAgent, httpsAgent })
I was wondering if there's a way that I can rotate through the block for web scraping purposes with puppeteer.