1await page.goto('https://search.google.com/search-console?resource_id=https%3A%2F%2Fwww.ranksense.com%2F',
2 {"waitUntil": "networkidle0"})
3
4print(url)
1import asyncio
2from pyppeteer import connect
3
4from time import sleep
5
6async def inspect_urls(urls):
7 #example URI. Copy and paste from Chrome output
8 #run Chrome using (Mac):
9 #mkdir ~/chrome-dev
10 #/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --no-first-run --user-data-dir=~/chrome-dev
11
12 ws = "ws://127.0.0.1:9222/devtools/browser/52112a5a-7555-4743-a37f-5fb26bd81b92"
13
14 browser = await connect({"browserWSEndpoint": ws})
15 page = await browser.newPage()
16 #optional viewport resize
17 await page.setViewport({"width": 1920, "height": 1280})