Memory leak in Node.js scraper

前端 未结 4 1800
小鲜肉
小鲜肉 2021-02-04 13:23

This is a simple scraper written in JavaScript with Node.js, for scraping Wikipedia for periodic table element data. The dependencies are jsdom for DOM manipulation and chain-ga

4条回答
  •  别跟我提以往
    2021-02-04 13:54

    I know its not much of an answer but I had a similar problem. I have multiple scrapers running simultaneously and memory was getting leaked.

    I have ended up using node-jquery instead of JSDOM

    https://github.com/coolaj86/node-jquery

提交回复
热议问题