We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd6a39 commit a4f0f5dCopy full SHA for a4f0f5d
1 file changed
scrapegraphai/docloaders/chromium.py
@@ -65,6 +65,15 @@ def __init__(
65
self.load_state = load_state
66
self.requires_js_support = requires_js_support
67
self.storage_state = storage_state
68
+
69
+ async def scrape(self, url:str) -> str:
70
+ if self.backend == "playwright":
71
+ return await self.ascrape_playwright(url)
72
+ elif self.backend == "selenium":
73
+ return await self.ascrape_undetected_chromedriver(url)
74
+ else:
75
+ raise ValueError(f"Unsupported backend: {self.backend}")
76
77
78
async def ascrape_undetected_chromedriver(self, url: str) -> str:
79
"""
0 commit comments