Преглед изворни кода

Merge pull request #24 from belal87/main

added something
Steve Sewell пре 1 година
родитељ
комит
828c41ffc8
2 измењених фајлова са 2 додато и 3 уклоњено
  1. BIN
      .DS_Store
  2. 2 3
      config.ts

+ 2 - 3
config.ts

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