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.
- package/crawl.mjs +2 -5
- 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
|
-
|
|
128
|
-
|
|
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 }) => {
|