What is JSDOM?
JSDOM mimics a browser environment, whileHtmlparser2 is a fast HTML/XML parser. They are “data processors” and do not perform network requests themselves. You don’t apply proxies to the parser, but you use Oculus Proxies to get the data they parse. Without a proxy-enabled request (via Axios/Fetch), the parser would have no content to process because the target site would likely block the initial data fetch.
How to Use Oculus Proxies With JSDOM
1
Install package
Install via cmd:
2
Example code
Use the following code as an example for JSDOM. Make sure to replace the correct proxy credentials from your dashboard inside
response.