amis2/scraper-config.json
2020-08-07 16:20:17 +08:00

122 lines
3.1 KiB
JSON

{
"index_name": "gh_pages",
"start_urls": [
"https://baidu.gitee.io/amis/docs/index",
"https://baidu.gitee.io/amis/docs/concepts/schema",
"https://baidu.gitee.io/amis/docs/concepts/datascope-and-datachain",
"https://baidu.gitee.io/amis/docs/concepts/template",
"https://baidu.gitee.io/amis/docs/concepts/data-mapping",
"https://baidu.gitee.io/amis/docs/concepts/expression",
"https://baidu.gitee.io/amis/docs/concepts/linkage",
"https://baidu.gitee.io/amis/docs/concepts/action",
"https://baidu.gitee.io/amis/docs/concepts/style",
"https://baidu.gitee.io/amis/docs/types/schemanode",
"https://baidu.gitee.io/amis/docs/types/api",
{
"url": "https://baidu.gitee.io/amis/docs/components",
"selectors_key": "component"
},
{
"url": "https://baidu.gitee.io/amis/docs/components/form/(?P<formItem>.*?$)",
"selectors_key": "formitem",
"variables": {
"formItem": [
"index",
"formitem",
"options",
"array",
"button",
"button-toolbar",
"button-group",
"chain-select",
"checkbox",
"checkboxes",
"city",
"color",
"combo",
"date",
"datetime",
"date-range",
"datetime-range",
"diff-editor",
"editor",
"fieldset",
"file",
"formula",
"grid",
"group",
"hbox",
"hidden",
"image",
"input-group",
"list",
"matrix",
"nestedselect",
"number",
"panel",
"picker",
"radios",
"rating",
"range",
"repeat",
"rich-text",
"select",
"service",
"subform",
"switch",
"static",
"tabs",
"table",
"tag",
"text",
"textarea",
"time",
"tree",
"treeselect"
]
}
}
],
"js_render": true,
"js_wait": 1,
"use_anchors": false,
"selectors": {
"default": {
"lvl0": ".Doc-title h1",
"lvl1": ".markdown-body h2",
"lvl2": ".markdown-body h3",
"lvl3": ".markdown-body h4",
"lvl4": ".markdown-body h5",
"text": ".markdown-body p, .markdown-body li"
},
"component": {
"lvl0": {
"selector": ".Doc-title h1",
"default_value": "\u7ec4\u4ef6\u6587\u6863"
},
"lvl1": ".markdown-body h2",
"lvl2": ".markdown-body h3",
"lvl3": ".markdown-body h4",
"lvl4": ".markdown-body h5",
"text": ".markdown-body p, .markdown-body li"
},
"formitem": {
"lvl0": {
"selector": ".Doc-title h1",
"default_value": "\u7ec4\u4ef6\u6587\u6863"
},
"lvl1": {
"selector": ".markdown-body h2",
"default_value": "Form"
},
"lvl2": ".markdown-body h3",
"lvl3": ".markdown-body h4",
"lvl4": ".markdown-body h5",
"text": ".markdown-body p, .markdown-body li"
}
},
"min_indexed_level": 0,
"nb_hits": 1224
}