koishi-plugin-bns-blacklist 1.0.0 → 1.0.2
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/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -184,8 +184,8 @@ ${itemsHtml}
|
|
|
184
184
|
// ─── Data Scraping ─────────────────────────────────────────
|
|
185
185
|
async function scrapeSheet(page, url) {
|
|
186
186
|
await page.goto(url, { waitUntil: 'networkidle2', timeout: 60000 });
|
|
187
|
-
// Wait for the sheet to render
|
|
188
|
-
await
|
|
187
|
+
// Wait for the sheet to render
|
|
188
|
+
await new Promise(r => setTimeout(r, 5000));
|
|
189
189
|
// Try to extract data from Tencent Docs rendered cells
|
|
190
190
|
// Approach: use the Tencent Docs internal data API via JS
|
|
191
191
|
const data = await page.evaluate(() => {
|
|
@@ -375,7 +375,7 @@ function apply(ctx, config) {
|
|
|
375
375
|
try {
|
|
376
376
|
await page.setViewport({ width: 1500, height: 800 });
|
|
377
377
|
await page.setContent(html, { waitUntil: 'networkidle2', timeout: 30000 });
|
|
378
|
-
await
|
|
378
|
+
await new Promise(r => setTimeout(r, 2000));
|
|
379
379
|
// Get the card element's bounding box and screenshot it
|
|
380
380
|
const card = await page.$('.cyber-card');
|
|
381
381
|
if (card) {
|