Skip to content

Commit

Permalink
playwright's api has changed:
Browse files Browse the repository at this point in the history
from playwright.sync_api import sync_playwright
from playwright.async_api import async_playwright
  • Loading branch information
AtuboDad committed Mar 24, 2021
1 parent d2d2471 commit 22528df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ pip install playwright-stealth
### sync
```python

from playwright import sync_playwright
from playwright.sync_api import sync_playwright
from playwright_stealth import stealth_sync

with sync_playwright() as p:
Expand All @@ -29,7 +29,7 @@ with sync_playwright() as p:
```python
# -*- coding: utf-8 -*-
import asyncio
from playwright import async_playwright
from playwright.async_api import async_playwright
from playwright_stealth import stealth_async

async def main():
Expand Down

0 comments on commit 22528df

Please sign in to comment.