initial ado2_crawler

main
jaehwang 2025-09-16 13:31:41 +09:00
parent f0a5670e47
commit eac4b20b62
3 changed files with 28 additions and 1 deletions

View File

@ -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

16
main.py Normal file
View File

@ -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())

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
playwright
dotenv