瀏覽代碼

commit one

belal 1 年之前
父節點
當前提交
e2d3f7f089
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 二進制
      .DS_Store
  2. 3 3
      config.ts

二進制
.DS_Store


+ 3 - 3
config.ts

@@ -1,5 +1,5 @@
 import { Page } from "playwright";
-
+console.log("Hello");
 type Config = {
   /** URL to start the crawl */
   url: string;
@@ -12,13 +12,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;
 };