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
chore: update changelog, bump version
Ondra Urban9fd233927d38
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c7887a9a6..141dac1c7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,21 @@-1.1.0 / 2021/03/XX+1.1.0 / 2021/03/19====================+In this minor release we focused on the `SessionPool`. Besides fixing a few bugs, we added one important feature: setting and getting of sessions by ID.++```js+// Now you can add specific sessions to the pool,+// instead of relying on random generation.+await sessionPool.addSession({+ id: 'my-session',+ // ... some config+});++// Later, you can retrieve the session. This is useful+// for example when you need a specific login session.+const session = await sessionPool.getSession('my-session');+```++## Full list of changes:- Add `sessionPool.addSession()` function to add a new session to the session pool (possibly with the provided options, e.g. with specific session id).- Add optional parameter `sessionId` to `sessionPool.getSession()` to be able to retrieve a session from the session pool with the specific session id.- Fix `SessionPool` not working properly in both `PuppeteerCrawler` and `PlaywrightCrawler`.diff --git a/package.json b/package.jsonindex a55646b15..93e3fca96 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "apify",- "version": "1.1.0",+ "version": "1.1.1","description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.","engines": {"node": ">=10.17.0"