This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// save as index.js | |
// npm install https://github.com/GoogleChrome/puppeteer/ | |
// node index.js URL | |
const puppeteer = require('puppeteer'); | |
(async () => { | |
const url = process.argv[2]; | |
const browser = await puppeteer.launch(); | |
// use tor | |
//const browser = await puppeteer.launch({args:['--proxy-server=socks5://127.0.0.1:9050']}); |