diff --git a/README.md b/README.md index 407f902..2dd8c5a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ -# ADO2VMCrawler +apt-get update +apt-get install python3-dev python3-venv +python3 -m venv .venv + +source ./venv/bin/activate + +pip install -r requirements + +playwright install-deps +playwright install \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..5e80152 --- /dev/null +++ b/main.py @@ -0,0 +1,16 @@ +import playwright +from playwright.async_api import async_playwright + +import asyncio + +async def playwright_test(): + async with async_playwright() as p: + browser = await p.chromium.launch() + page = await browser.new_page() + await page.goto("https://playwright.dev") + print(await page.title()) + await browser.close() + pass + + +asyncio.run(playwright_test()) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3f3391f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +playwright +dotenv \ No newline at end of file