浏览代码

Merge pull request #20 from Ashishprasa/doc-cookie-reference

add cookie reference
Steve Sewell 1 年之前
父节点
当前提交
4b22661ec6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      README.md

+ 2 - 0
README.md

@@ -68,6 +68,8 @@ type Config = {
   maxPagesToCrawl: number;
   /** File name for the finished data */
   outputFileName: string;
+  /** Optional cookie to be set. E.g. for Cookie Consent */
+  cookie?: {name: string; value: string}
   /** Optional function to run for each page found */
   onVisitPage?: (options: {
     page: Page;