guidelinescraper 1.0.2 → 1.0.3

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 -2
  2. package/package.json +1 -1
package/crawl.mjs CHANGED
@@ -169,7 +169,6 @@ const crawler = new PlaywrightCrawler({
169
169
  return;
170
170
  }
171
171
 
172
- log.info(`Saving ${request.url} → ${pdfPath}`);
173
172
 
174
173
  await page
175
174
  .waitForLoadState("networkidle", { timeout: 30_000 })
@@ -413,7 +412,8 @@ const crawler = new PlaywrightCrawler({
413
412
  const avgSec = (Date.now() - crawlStart) / 1000 / completed;
414
413
  const remaining = Math.round(avgSec * (totalPages - completed));
415
414
  const eta = remaining > 0 ? `~${formatDuration(remaining * 1000)} left` : "";
416
- log.info(`[${completed}/${totalPages}] ${pct}% · ${elapsed}s elapsed ${eta} · ${path.basename(pdfPath)}`);
415
+ const shortPath = pdfPath.replace(/\.pdf$/, "").replace(/^output\//, "");
416
+ log.info(`[${completed}/${totalPages}] ${pct}% · ${elapsed}s ${eta} · ${shortPath}`);
417
417
  },
418
418
 
419
419
  async failedRequestHandler({ request, log }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guidelinescraper",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "Scrape a Frontify brand portal and save every page as PDF and clean HTML",
6
6
  "bin": {