No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

214 líneas
6.9 KiB

  1. {
  2. "id": 60,
  3. "name": "新web采集任务",
  4. "url": "https://www.jd.com",
  5. "links": "https://www.jd.com",
  6. "create_time": "5/21/2023, 4:26:32 PM",
  7. "containJudge": false,
  8. "desc": "https://www.jd.com",
  9. "inputParameters": [
  10. {
  11. "id": 0,
  12. "name": "urlList_0",
  13. "nodeId": 1,
  14. "nodeName": "打开网页",
  15. "value": "https://www.jd.com",
  16. "desc": "要采集的网址列表,多行以\\n分开",
  17. "type": "string",
  18. "exampleValue": "https://www.jd.com"
  19. }
  20. ],
  21. "outputParameters": [
  22. {
  23. "id": 0,
  24. "name": "参数1_文本",
  25. "desc": "",
  26. "type": "string",
  27. "exampleValue": "/手机/数码"
  28. }
  29. ],
  30. "graph": [
  31. {
  32. "index": 0,
  33. "id": 0,
  34. "parentId": 0,
  35. "type": -1,
  36. "option": 0,
  37. "title": "root",
  38. "sequence": [
  39. 1,
  40. 2
  41. ],
  42. "parameters": {
  43. "history": 1,
  44. "tabIndex": 0,
  45. "useLoop": false,
  46. "xpath": "",
  47. "wait": 0
  48. },
  49. "isInLoop": false
  50. },
  51. {
  52. "id": 1,
  53. "index": 1,
  54. "parentId": 0,
  55. "type": 0,
  56. "option": 1,
  57. "title": "打开网页",
  58. "sequence": [],
  59. "isInLoop": false,
  60. "position": 0,
  61. "parameters": {
  62. "useLoop": false,
  63. "xpath": "",
  64. "wait": 0,
  65. "beforeJS": "",
  66. "beforeJSWaitTime": 0,
  67. "afterJS": "",
  68. "afterJSWaitTime": 0,
  69. "url": "https://www.jd.com",
  70. "links": "https://www.jd.com",
  71. "maxWaitTime": 10,
  72. "scrollType": 0,
  73. "scrollCount": 0
  74. }
  75. },
  76. {
  77. "id": 2,
  78. "index": 2,
  79. "parentId": 0,
  80. "type": 1,
  81. "option": 8,
  82. "title": "循环",
  83. "sequence": [
  84. 3
  85. ],
  86. "isInLoop": false,
  87. "position": 1,
  88. "parameters": {
  89. "history": 4,
  90. "tabIndex": -1,
  91. "useLoop": false,
  92. "xpath": "/html/body/div[5]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div",
  93. "wait": 0,
  94. "beforeJS": "",
  95. "beforeJSWaitTime": 0,
  96. "afterJS": "",
  97. "afterJSWaitTime": 0,
  98. "scrollType": 0,
  99. "scrollCount": 0,
  100. "loopType": "1",
  101. "pathList": "",
  102. "textList": "",
  103. "code": "",
  104. "waitTime": 0,
  105. "exitCount": 0,
  106. "historyWait": 2,
  107. "breakMode": "1",
  108. "breakCode": "return window.innerHeight > 500",
  109. "breakCodeWaitTime": 0,
  110. "allXPaths": [
  111. "/html/body/div[5]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]",
  112. "//div[contains(., '/手机/数码')]",
  113. "//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG ']"
  114. ]
  115. }
  116. },
  117. {
  118. "id": 3,
  119. "index": 3,
  120. "parentId": 2,
  121. "type": 0,
  122. "option": 3,
  123. "title": "提取数据",
  124. "sequence": [],
  125. "isInLoop": true,
  126. "position": 0,
  127. "parameters": {
  128. "history": 4,
  129. "tabIndex": -1,
  130. "useLoop": false,
  131. "xpath": "",
  132. "wait": 0,
  133. "beforeJS": "",
  134. "beforeJSWaitTime": 0,
  135. "afterJS": "",
  136. "afterJSWaitTime": 0,
  137. "paras": [
  138. {
  139. "nodeType": 0,
  140. "contentType": 0,
  141. "relative": true,
  142. "name": "参数1_文本",
  143. "desc": "",
  144. "extractType": 0,
  145. "relativeXPath": "",
  146. "allXPaths": "",
  147. "exampleValues": [
  148. {
  149. "num": 0,
  150. "value": "/手机/数码"
  151. },
  152. {
  153. "num": 1,
  154. "value": "/家用电器"
  155. },
  156. {
  157. "num": 2,
  158. "value": "/电脑/办公"
  159. },
  160. {
  161. "num": 3,
  162. "value": "/家纺/家居/厨具"
  163. },
  164. {
  165. "num": 4,
  166. "value": "/家具/家装/灯具/工业品"
  167. },
  168. {
  169. "num": 5,
  170. "value": "/内衣/男装/女装/童装"
  171. },
  172. {
  173. "num": 6,
  174. "value": "/箱包/钟表/珠宝/女鞋"
  175. },
  176. {
  177. "num": 7,
  178. "value": "/运动/户外/男鞋"
  179. },
  180. {
  181. "num": 8,
  182. "value": "/汽车用品/车载电器"
  183. },
  184. {
  185. "num": 9,
  186. "value": "/母婴/洗护喂养"
  187. },
  188. {
  189. "num": 10,
  190. "value": "/玩具乐器/宠物生活"
  191. },
  192. {
  193. "num": 11,
  194. "value": "/家庭清洁/个人护理/计生情趣"
  195. },
  196. {
  197. "num": 12,
  198. "value": "/图书/童书/文学"
  199. }
  200. ],
  201. "default": "",
  202. "beforeJS": "",
  203. "beforeJSWaitTime": 0,
  204. "JS": "",
  205. "JSWaitTime": 0,
  206. "afterJS": "",
  207. "afterJSWaitTime": 0,
  208. "downloadPic": 0
  209. }
  210. ],
  211. "loopType": 1
  212. }
  213. }
  214. ]
  215. }