guidelinescraper 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/crawl.mjs +2 -5
  2. package/package.json +1 -1
package/crawl.mjs CHANGED
@@ -124,10 +124,8 @@ for (const { pdfPath } of pages) {
124
124
  const cookieConsentValue =
125
125
  '{"isCookieConsentOpen":false,"preferencesScriptsEnabled":true,"statisticsScriptsEnabled":true}';
126
126
 
127
- const config = new Configuration({
128
- persistStorage: false,
129
- purgeOnStart: true,
130
- });
127
+ Configuration.getGlobalConfig().set("persistStorage", false);
128
+ Configuration.getGlobalConfig().set("purgeOnStart", true);
131
129
 
132
130
  const crawler = new PlaywrightCrawler({
133
131
  headless: true,
@@ -137,7 +135,6 @@ const crawler = new PlaywrightCrawler({
137
135
  maxConcurrency: 8,
138
136
  maxRequestRetries: 2,
139
137
  navigationTimeoutSecs: 120,
140
- configuration: config,
141
138
 
142
139
  preNavigationHooks: [
143
140
  async ({ page, request }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guidelinescraper",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "description": "Scrape a Frontify brand portal and save every page as PDF and clean HTML",
6
6
  "bin": {