diff --git a/emoneyscraper/main.py b/emoneyscraper/main.py new file mode 100644 index 0000000..e69de29 diff --git a/emoneyscraper/scraper.py b/emoneyscraper/scraper.py new file mode 100644 index 0000000..ef93f9c --- /dev/null +++ b/emoneyscraper/scraper.py @@ -0,0 +1,12 @@ +from playwright.sync_api import sync_playwright, Playwright + +def run(playwright: Playwright): + chromium = playwright.chromium # or "firefox" or "webkit". + browser = chromium.launch() + page = browser.new_page() + page.goto("http://example.com") + # other actions... + browser.close() + +with sync_playwright() as playwright: + run(playwright) \ No newline at end of file