Open AIchovy opened 1 year ago
same question
Arguably, no. Not sure it's more convenient. It can be automated though.
from playwright.sync_api import sync_playwright
def print_request(route, request):
print(f"{request.method} {request.url}")
route.continue_()
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=False)
context = browser.new_context()
context.route('**/*', print_request) # This enables request interception
page = context.new_page()
page.goto("https://discord.com/login")
browser.close()
I have two questions: