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
cookie expires uses seconds not milliseconds (#659)
Paulo Cesarea9eb9143852
diff --git a/src/session_pool/session.js b/src/session_pool/session.jsindex 1cd260ddc..eeb9c6921 100644--- a/src/session_pool/session.js+++ b/src/session_pool/session.js@@ -305,7 +305,7 @@ export class Session {*/_puppeteerCookieToTough(puppeteerCookie) {const isExpiresValid = puppeteerCookie.expires && typeof puppeteerCookie.expires === 'number';- const expires = isExpiresValid ? new Date(puppeteerCookie.expires) : this._getDefaultCookieExpirationDate(this.maxAgeSecs);+ const expires = isExpiresValid ? new Date(puppeteerCookie.expires * 1000) : this._getDefaultCookieExpirationDate(this.maxAgeSecs);return new Cookie({key: puppeteerCookie.name,value: puppeteerCookie.value,