I'm learning a bit of web scraping using Playwright and Python, but I can't connect to the website I wish to using goto.
from playwright.sync_api import sync_playwright
def run(playwright):
browser = playwright.chromium.launch(headless=True)
page = browser.new_page()
page.goto('https://www.tesla.com/de_DE/inventory/new/ms?arrangeby=relevance&range=0',timeout = 0)
browser.close()
with sync_playwright() as playwright:
run(playwright)
The error I get is: playwright._impl._api_types.Error: net::ERR_HTTP2_PROTOCOL_ERROR at https://www.tesla.com/de_DE/inventory/new/ms?arrangeby=relevance&range=0
Along with it there's a single line of logs: navigating to "https://www.tesla.com/de_DE/inventory/new/ms?arrangeby=relevance&range=0", waiting until "load"
I tried adding timeout=0 to the goto but I get the same error.