3 ms·
Don't execute random javascript from the web in nodejs, nodejs isn't sandboxed the same way that web browsers are and it generally won't work any way. That ope
by traverseda 5y ago
Don't execute random javascript from the web in nodejs, nodejs isn't sandboxed the same way that web browsers are and it generally won't work any way.
That opens up massive security problems.
- simonw 5y agoTrue - that's why you run scrapers using Playwright or Selenium - both of which can easily be scripted from either JavaScript or Python, while executing website code in a sandboxed browser instance.
- throwawaysea 5y agoIs there a similar guide that walks through step by step how to perform scraping using one of those sandboxes?
- wil421 5y agoNot a guide but a doc I’ve used before is listed below. I use webdriver to open Firefox. https://selenium-python.readthedocs.io/ https://selenium-python.readthedocs.io/