From c64d00827b797e90226092f7be255c30c44b7bec Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Thu, 6 Aug 2020 14:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/DocSearch.jsx | 4 ++-- scraper-config.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/components/DocSearch.jsx b/examples/components/DocSearch.jsx index fae19dfd..f4ec0e5e 100644 --- a/examples/components/DocSearch.jsx +++ b/examples/components/DocSearch.jsx @@ -33,8 +33,8 @@ export default class DocSearch extends React.Component { componentDidMount() { const inputSelector = 'input[name="docsearch"]'; docsearch({ - appId: '3W0NHYOWPE', - apiKey: '469f5cf3d54f9b86127970f913dc0725', + appId: 'S08MJHBHFJ', + apiKey: 'f2d788a048dcc0bdc87a1d8c54bee363', indexName: 'gh_pages', inputSelector, debug: false diff --git a/scraper-config.json b/scraper-config.json index 1c8f1f2f..1a448488 100644 --- a/scraper-config.json +++ b/scraper-config.json @@ -83,7 +83,7 @@ "use_anchors": false, "selectors": { "default": { - "lvl0": ".markdown-body h1, .a-TitleBar .h3", + "lvl0": ".Doc-title h1", "lvl1": ".markdown-body h2", "lvl2": ".markdown-body h3", "lvl3": ".markdown-body h4", @@ -92,8 +92,8 @@ }, "component": { "lvl0": { - "selector": ".markdown-body h1, .a-TitleBar .h3", - "default_value": "\u6e32\u67d3\u5668\u624b\u518c" + "selector": ".Doc-title h1", + "default_value": "\u7ec4\u4ef6\u6587\u6863" }, "lvl1": ".markdown-body h2", "lvl2": ".markdown-body h3", @@ -103,8 +103,8 @@ }, "formitem": { "lvl0": { - "selector": ".markdown-body h1, .a-TitleBar .h3", - "default_value": "\u6e32\u67d3\u5668\u624b\u518c" + "selector": ".Doc-title h1", + "default_value": "\u7ec4\u4ef6\u6587\u6863" }, "lvl1": { "selector": ".markdown-body h2",