initial ado2_crawler
parent
f0a5670e47
commit
eac4b20b62
11
README.md
11
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
|
||||||
|
|
@ -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())
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
playwright
|
||||||
|
dotenv
|
||||||
Loading…
Reference in New Issue