@cloud411716/fancy-webnovel 0.3.14 → 0.3.15
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/package.json
CHANGED
|
@@ -256,7 +256,7 @@ async function scrapeChannel(ch, type) {
|
|
|
256
256
|
const initUrl = `https://fanqienovel.com/rank/${ch}_${type}_${initCatId}`;
|
|
257
257
|
|
|
258
258
|
const browser = await chromium.launch({
|
|
259
|
-
headless:
|
|
259
|
+
headless: true,
|
|
260
260
|
args: ['--no-sandbox', '--disable-dev-shm-usage', '--start-maximized'],
|
|
261
261
|
});
|
|
262
262
|
const context = await browser.newContext();
|
|
@@ -114,7 +114,7 @@ async function scrapeRank(rankTypeId, channelId) {
|
|
|
114
114
|
console.log(`\n→ 采集 晋江${rt.label}(${chLabel})...`);
|
|
115
115
|
console.log(` URL: ${url}`);
|
|
116
116
|
|
|
117
|
-
const browser = await chromium.launch({ headless:
|
|
117
|
+
const browser = await chromium.launch({ headless: true, args: ["--no-sandbox", "--disable-dev-shm-usage", "--start-maximized"] });
|
|
118
118
|
const context = await browser.newContext();
|
|
119
119
|
const page = await context.newPage();
|
|
120
120
|
|
|
@@ -153,7 +153,7 @@ async function scrapeRank(channelId, rankTypeId, periodId) {
|
|
|
153
153
|
const url = rankUrl(channelId, rankTypeId, periodId);
|
|
154
154
|
console.log(`\n→ 采集 七猫${ch.label}${rt.label}${period ? period.label : ""}...`);
|
|
155
155
|
|
|
156
|
-
const browser = await chromium.launch({ headless:
|
|
156
|
+
const browser = await chromium.launch({ headless: true, args: ["--no-sandbox", "--disable-dev-shm-usage", "--start-maximized"] });
|
|
157
157
|
const context = await browser.newContext();
|
|
158
158
|
const page = await context.newPage();
|
|
159
159
|
|