alperiox

import requirements playwright vs selenium

Dec 22nd, 2022 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2. from playwright.sync_api import sync_playwright
  3.  
  4. with sync_playwright() as p:
  5.     # launch the browser instance and define a new context
  6.     browser = p.chromium.launch()
  7.     context = browser.new_context()
Advertisement
Add Comment
Please, Sign In to add comment