Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is their a way to scrape an already opened playwright webpage? #429

Open
Zubair2019 opened this issue Jan 8, 2025 · 2 comments
Open

Is their a way to scrape an already opened playwright webpage? #429

Zubair2019 opened this issue Jan 8, 2025 · 2 comments
Assignees

Comments

@Zubair2019
Copy link

No description provided.

@Zubair2019
Copy link
Author

using this
async def main1():
user_agent: str = (
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/116.0.5845.187 Safari/604.1 Edg/117.0.2045.47"
)
async with async_playwright() as playwright:
url= URL
browser = await playwright.chromium.launch(headless=True)
context = await browser.new_context(user_agent=user_agent)
page = await context.new_page()

@unclecode
Copy link
Owner

@Zubair2019 Hello, thanks for trying Crawl4ai. I see some ambiguity in your question. Correct me if I'm wrong. You're saying that you already have your own Playwright objects and that you created a new page object. You want to use this page object in the process of Crawl4ai data crawling. Is that right?

@unclecode unclecode self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants