|
- <mxGraphModel>
- <root>
- <mxCell id="0">
- <JsonProperty as="data">
- {"spiderName":"未定义名称","submit-strategy":"random","threadCount":"1"}
- </JsonProperty>
- </mxCell>
- <mxCell id="1" parent="0"/>
- <mxCell id="2" value="开始" style="start" parent="1" vertex="1">
- <mxGeometry x="80" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"shape":"start"}
- </JsonProperty>
- </mxCell>
- <mxCell id="3" value="定义变量" style="variable" parent="1" vertex="1">
- <mxGeometry x="210" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"value":"定义变量","loopVariableName":"","ziloopVariableName":"","variable-name":["keyword","page"],"variable-description":["",""],"loopCount":"","ziloopCount":"","variable-value":["北京","${pageNoData}"],"shape":"variable"}
- </JsonProperty>
- </mxCell>
- <mxCell id="4" value="" style="strokeWidth=2;sharp=1;" parent="1" source="2" target="3" edge="1">
- <mxGeometry relative="1" as="geometry"/>
- <JsonProperty as="data">
- {"value":"","exception-flow":"0","lineWidth":"2","line-style":"sharp","lineColor":"black","condition":"","transmit-variable":"1"}
- </JsonProperty>
- </mxCell>
- <mxCell id="5" value="开始抓取" style="request" parent="1" vertex="1">
- <mxGeometry x="350" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"value":"开始抓取","loopVariableName":"","method":"GET","sleep":"","timeout":"","response-charset":"","retryCount":"","retryInterval":"","header-name":["Cookie","Referer","User-Agent"],"header-description":["","",""],"body-type":"none","body-content-type":"text/plain","loopCount":"","url":"${\"https://so.toutiao.com/search?dvpf=pc&source=search_subtab_switch&keyword=\"+keyword+\"&pd=atlas&action_type=search_subtab_switch&page_num=\"+(page-1)+\"&search_id=2022102411264801015013416052D26757&from=gallery&cur_tab_title=gallery&rawJSON=1\"}","proxy":"","header-value":["_tea_utm_cache_4916=undefined; _S_DPR=1.25; _S_IPAD=0; MONITOR_WEB_ID=7156843505628530190; passport_csrf_token=8506d4b37fcefe68598d341fa50b3476; passport_csrf_token_default=8506d4b37fcefe68598d341fa50b3476; tt_webid=7156843505628530190; ttwid=1%7CcKwTgA4nrKSNy2DiS9Cn7Xpik-BnaGBfw34wTz5Itx8%7C1666581921%7Cb19d3198d43fec1a13002bf16b78b3d0e3c38b49b05029161f86eaba8ee986e7; _S_WIN_WH=1536_360","https://so.toutiao.com/search?dvpf=pc&source=search_subtab_switch&keyword=%E4%BB%8A%E5%A4%A9%E5%90%83%E4%BB%80%E4%B9%88&pd=atlas&action_type=search_subtab_switch&page_num=0&search_id=&from=gallery&cur_tab_title=gallery","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"],"request-body":"","follow-redirect":"1","tls-validate":"1","cookie-auto-set":"1","repeat-enable":"0","shape":"request"}
- </JsonProperty>
- </mxCell>
- <mxCell id="6" value="" style="strokeWidth=2;sharp=1;" parent="1" source="3" target="5" edge="1">
- <mxGeometry relative="1" as="geometry"/>
- <JsonProperty as="data">
- {"value":"","exception-flow":"0","lineWidth":"2","line-style":"sharp","lineColor":"black","condition":"","transmit-variable":"1"}
- </JsonProperty>
- </mxCell>
- <mxCell id="7" value="定义变量" style="variable" parent="1" vertex="1">
- <mxGeometry x="470" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"value":"定义变量","loopVariableName":"","ziloopVariableName":"","variable-name":["json","datalist"],"variable-description":["",""],"loopCount":"","ziloopCount":"","variable-value":["${resp.html.json()}","${json.rawData.data}"],"shape":"variable"}
- </JsonProperty>
- </mxCell>
- <mxCell id="8" value="" style="strokeWidth=2;sharp=1;" parent="1" source="5" target="7" edge="1">
- <mxGeometry relative="1" as="geometry"/>
- <JsonProperty as="data">
- {"value":"","exception-flow":"0","lineWidth":"2","line-style":"sharp","lineColor":"black","condition":"","transmit-variable":"1"}
- </JsonProperty>
- </mxCell>
- <mxCell id="9" value="循环" style="loop" parent="1" vertex="1">
- <mxGeometry x="580" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"value":"循环","loopItem":"","loopVariableName":"i","loopCount":"${datalist.size()}","loopStart":"0","loopEnd":"-1","awaitSleep":"0","shape":"loop"}
- </JsonProperty>
- </mxCell>
- <mxCell id="10" value="" style="strokeWidth=2;sharp=1;" parent="1" source="7" target="9" edge="1">
- <mxGeometry relative="1" as="geometry"/>
- <JsonProperty as="data">
- {"value":"","exception-flow":"0","lineWidth":"2","line-style":"sharp","lineColor":"black","condition":"","transmit-variable":"1"}
- </JsonProperty>
- </mxCell>
- <mxCell id="11" value="定义变量" style="variable" parent="1" vertex="1">
- <mxGeometry x="680" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"value":"定义变量","loopVariableName":"","ziloopVariableName":"","variable-name":["title","url","videojson","imglist","imgjson","","","","",""],"variable-description":["","","","","","","","","",""],"loopCount":"","ziloopCount":"","variable-value":["${datalist.get(i).text}","${datalist.get(i).img_url}","${jsonUtils.createJsonObject()}","${jsonUtils.createJsonArray()}","${jsonUtils.createJsonObject()}","${imgjson.put(\"imgurl\",url)}","${imglist.add(imgjson)}","${videojson.put(\"imglist\",imglist)}","${videojson.put(\"vediourl\",'')}","${videojson.put(\"videoorientationurl\",'')}"],"shape":"variable"}
- </JsonProperty>
- </mxCell>
- <mxCell id="12" value="" style="strokeWidth=2;sharp=1;" parent="1" source="9" target="11" edge="1">
- <mxGeometry relative="1" as="geometry"/>
- <JsonProperty as="data">
- {"value":"","exception-flow":"0","lineWidth":"2","line-style":"sharp","lineColor":"black","condition":"","transmit-variable":"1"}
- </JsonProperty>
- </mxCell>
- <mxCell id="13" value="输出" style="output" parent="1" vertex="1">
- <mxGeometry x="800" y="80" width="32" height="32" as="geometry"/>
- <JsonProperty as="data">
- {"value":"输出","loopVariableName":"","tableName":"","csvName":"","csvEncoding":"GBK","output-name":["title","url","publish_time","videojson"],"loopCount":"","output-value":["${strUtils.contains(title,keyword)?(strUtils.replaceAll(title,keyword,'<b class=\"key\" style=\"color:red\">'+keyword+'</b>')):(title)}","${url}","${''}","${videojson}"],"output-all":"0","output-database":"0","output-csv":"0","shape":"output"}
- </JsonProperty>
- </mxCell>
- <mxCell id="14" value="" style="strokeWidth=2;sharp=1;" parent="1" source="11" target="13" edge="1">
- <mxGeometry relative="1" as="geometry"/>
- <JsonProperty as="data">
- {"value":"","exception-flow":"0","lineWidth":"2","line-style":"sharp","lineColor":"black","condition":"","transmit-variable":"1"}
- </JsonProperty>
- </mxCell>
- </root>
- </mxGraphModel>
|