Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Upgraded dependencies, reduced timeouts in unit tests
Jan Curnb023ed05b26b
diff --git a/package.json b/package.jsonindex 4b5c4a980..ebf84ad04 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "apify",- "version": "0.4.34",+ "version": "0.4.35","description": "Apify Actor runtime for JavaScript","main": "build/index.js","keywords": [@@ -53,16 +53,16 @@"apify-jsdoc-template": "github:Apifier/apify-jsdoc-template","babel-cli": "^6.6.5","babel-core": "^6.1.21",- "babel-eslint": "^7.2.2",+ "babel-eslint": "^8.0.2","babel-preset-es2015": "^6.1.18","babel-preset-stage-0": "^6.1.18","basic-auth-parser": "^0.0.2","chai": "^4.0.2",- "eslint": "^3.19.0",- "eslint-config-airbnb": "^15.0.1",- "eslint-config-airbnb-base": "^11.1.0",+ "eslint": "^4.11.0",+ "eslint-config-airbnb": "^16.1.0",+ "eslint-config-airbnb-base": "^12.1.0","eslint-plugin-import": "^2.2.0",- "eslint-plugin-jsx-a11y": "^5.0.3",+ "eslint-plugin-jsx-a11y": "^6.0.2","eslint-plugin-promise": "^3.4.2","eslint-plugin-react": "^7.0.1","isparta": "^4.0.0",@@ -73,12 +73,13 @@"proxy": "^0.2.4","request": "^2.81.0","rimraf": "^2.6.1",- "sinon": "^2.2.0",+ "sinon": "^4.1.2","sinon-stub-promise": "^4.0.0",- "tmp": "^0.0.33"+ "tmp": "^0.0.33",+ "why-is-node-running": "^1.2.3"},"optionalDependencies": {- "puppeteer": "^0.12.0",- "selenium-webdriver": "^3.4.0"+ "puppeteer": "^0.13.0",+ "selenium-webdriver": "^3.6.0"}}diff --git a/src/webdriver.js b/src/webdriver.jsindex a1294386f..1bb2c76c8 100644--- a/src/webdriver.js+++ b/src/webdriver.js@@ -324,6 +324,7 @@ export const launchWebDriver = (opts, callback) => {const promise = browser._initialize().then(() => {// TODO: for some reason this doesn't work, the proxy chain will never shut down!!+ // BTW this also prevents us from upgrading to mocha 4+// we'll need to find a way to fix this!// browser.webDriver.onQuit_ = () => {// if (browser.proxyChain) {diff --git a/test/webdriver.js b/test/webdriver.jsindex 061cf5572..8000faf69 100644--- a/test/webdriver.js+++ b/test/webdriver.js@@ -53,7 +53,7 @@ before(() => {});after(function () {- this.timeout(60 * 1000);+ this.timeout(30 * 1000);if (proxyServer) return Promise.promisify(proxyServer.close).bind(proxyServer)();});@@ -169,7 +169,7 @@ describe('processBrowseArgs()', () => {describe('Apify.launchWebDriver()', function () {// Need a large timeout to run unit tests on Travis CI- this.timeout(300 * 1000);+ this.timeout(30 * 1000);it('throws on invalid args', () => {assert.throws(() => {@@ -293,7 +293,7 @@ describe('Apify.launchWebDriver()', function () {describe('Apify.browse()', function () {// Need a large timeout to run unit tests on Travis CI- this.timeout(300 * 1000);+ this.timeout(30 * 1000);it('throws on invalid args', () => {assert.throws(() => {