浏览代码

Merge pull request #24 from belal87/main

added something
Steve Sewell 1 年之前
父节点
当前提交
828c41ffc8
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 二进制
      .DS_Store
  2. 2 3
      config.ts

二进制
.DS_Store


+ 2 - 3
config.ts

@@ -1,5 +1,4 @@
 import { Page } from "playwright";
-
 type Config = {
   /** URL to start the crawl */
   url: string;
@@ -12,13 +11,13 @@ type Config = {
   /** File name for the finished data */
   outputFileName: string;
   /** Optional cookie to be set. E.g. for Cookie Consent */
-  cookie?: {name: string; value: string}
+  cookie?: { name: string; value: string };
   /** Optional function to run for each page found */
   onVisitPage?: (options: {
     page: Page;
     pushData: (data: any) => Promise<void>;
   }) => Promise<void>;
-    /** Optional timeout for waiting for a selector to appear */
+  /** Optional timeout for waiting for a selector to appear */
   waitForSelectorTimeout?: number;
 };