Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files
src/scrapers/playwright_scraper.py
CHANGED
|
@@ -18,7 +18,7 @@ import platform
|
|
| 18 |
import subprocess
|
| 19 |
import os
|
| 20 |
import tempfile
|
| 21 |
-
import aioconsole
|
| 22 |
|
| 23 |
from ..utils.error_handler import ErrorMessages
|
| 24 |
|
|
@@ -263,7 +263,9 @@ class PlaywrightScraper(BaseScraper):
|
|
| 263 |
|
| 264 |
print("Please solve the CAPTCHA in the browser window.")
|
| 265 |
print("Once solved, press Enter in this console to continue...")
|
| 266 |
-
await aioconsole.ainput()
|
|
|
|
|
|
|
| 267 |
|
| 268 |
# Use 'load' instead of 'networkidle' - modern sites never reach networkidle
|
| 269 |
# due to constant analytics/tracking requests
|
|
|
|
| 18 |
import subprocess
|
| 19 |
import os
|
| 20 |
import tempfile
|
| 21 |
+
# import aioconsole
|
| 22 |
|
| 23 |
from ..utils.error_handler import ErrorMessages
|
| 24 |
|
|
|
|
| 263 |
|
| 264 |
print("Please solve the CAPTCHA in the browser window.")
|
| 265 |
print("Once solved, press Enter in this console to continue...")
|
| 266 |
+
# await aioconsole.ainput()
|
| 267 |
+
# For now, just sleep to allow manual interaction if aioconsole is missing
|
| 268 |
+
await asyncio.sleep(60)
|
| 269 |
|
| 270 |
# Use 'load' instead of 'networkidle' - modern sites never reach networkidle
|
| 271 |
# due to constant analytics/tracking requests
|