forked from vikas5914/google-photos-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.js
19 lines (15 loc) · 618 Bytes
/
setup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import path from 'path'
import { chromium } from 'playwright-extra'
import stealth from 'puppeteer-extra-plugin-stealth'
chromium.use(stealth())
const userDataDir = './session';
(async () => {
const browser = await chromium.launchPersistentContext(path.resolve(userDataDir), {
headless: false,
channel: 'chrome', // possible values: chrome, msedge and chromium
args: ['--no-sandbox', '--disable-setuid-sandbox']
})
const page = await browser.newPage()
await page.goto('https://photos.google.com/')
console.log('Close browser once you are logged inside Google Photos')
})()