initial ado2_crawler
This commit is contained in:
1 parent
f0a5670e47
commit
eac4b20b62
3 files changed
+28
-1
No files matched your search
@@ -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
|
||||||
Reference in new issue
Block a user