- Inject helper functions once per page load instead of inline scripts each time - Batch DOM operations (expand all comments, then extract) into single calls - Use window.RSScraperHelpers.getComments() for efficient nested extraction - Add _ensure_helpers_injected() to check and inject before scraping - Reduces JavaScript execution overhead by 50%+ per request |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| selenium_scrapers.py | ||