You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
4.1 KiB

9 months ago
9 months ago
  1. {
  2. "id": 41,
  3. "name": "新web采集任务",
  4. "url": "https://www.jd.com",
  5. "links": "https://www.jd.com",
  6. "containJudge": false,
  7. "desc": "https://www.jd.com",
  8. "inputParameters": [
  9. {
  10. "id": 0,
  11. "name": "urlList_0",
  12. "nodeId": 1,
  13. "nodeName": "打开网页",
  14. "value": "https://www.jd.com",
  15. "desc": "要采集的网址列表,多行以\\n分开",
  16. "type": "string",
  17. "exampleValue": "https://www.jd.com"
  18. }
  19. ],
  20. "outputParameters": [
  21. {
  22. "id": 0,
  23. "name": "参数1_图片地址",
  24. "desc": "",
  25. "type": "string",
  26. "exampleValue": "//m.360buyimg.com/babel/s580x740_jfs/t1/142264/15/32716/14415/63b40389F4a38dbcf/47dcbd8c9f404498.jpg!q70.dpg"
  27. }
  28. ],
  29. "graph": [
  30. {
  31. "index": 0,
  32. "id": 0,
  33. "parentId": 0,
  34. "type": -1,
  35. "option": 0,
  36. "title": "root",
  37. "sequence": [
  38. 1,
  39. 2
  40. ],
  41. "parameters": {
  42. "history": 1,
  43. "tabIndex": 0,
  44. "useLoop": false,
  45. "xpath": "",
  46. "wait": 0
  47. },
  48. "isInLoop": false
  49. },
  50. {
  51. "id": 1,
  52. "index": 1,
  53. "parentId": 0,
  54. "type": 0,
  55. "option": 1,
  56. "title": "打开网页",
  57. "sequence": [],
  58. "isInLoop": false,
  59. "position": 0,
  60. "parameters": {
  61. "useLoop": false,
  62. "xpath": "",
  63. "wait": 2,
  64. "url": "https://www.jd.com",
  65. "links": "https://www.jd.com",
  66. "scrollType": 0,
  67. "scrollCount": 0
  68. }
  69. },
  70. {
  71. "id": 2,
  72. "index": 2,
  73. "parentId": 0,
  74. "type": 1,
  75. "option": 8,
  76. "title": "循环",
  77. "sequence": [
  78. 3
  79. ],
  80. "isInLoop": false,
  81. "position": 1,
  82. "parameters": {
  83. "history": 4,
  84. "tabIndex": -1,
  85. "useLoop": false,
  86. "xpath": "/html/body/div[5]/div[1]/div[4]/div[1]/div[1]/div[1]/a/img[1]",
  87. "wait": 0,
  88. "scrollType": 0,
  89. "scrollCount": 0,
  90. "loopType": 1,
  91. "pathList": "",
  92. "textList": "",
  93. "exitCount": 0,
  94. "historyWait": 2
  95. }
  96. },
  97. {
  98. "id": 3,
  99. "index": 3,
  100. "parentId": 2,
  101. "type": 0,
  102. "option": 3,
  103. "title": "提取数据",
  104. "sequence": [],
  105. "isInLoop": true,
  106. "position": 0,
  107. "parameters": {
  108. "history": 4,
  109. "tabIndex": -1,
  110. "useLoop": false,
  111. "xpath": "",
  112. "wait": 0,
  113. "params": [
  114. {
  115. "nodeType": 4,
  116. "contentType": 7,
  117. "relative": true,
  118. "name": "参数1_图片地址",
  119. "desc": "",
  120. "extractType": 0,
  121. "relativeXPath": "",
  122. "exampleValues": [
  123. {
  124. "num": 0,
  125. "value": "//m.360buyimg.com/babel/s580x740_jfs/t1/142264/15/32716/14415/63b40389F4a38dbcf/47dcbd8c9f404498.jpg!q70.dpg"
  126. },
  127. {
  128. "num": 1,
  129. "value": "//m.360buyimg.com/babel/s580x740_jfs/t1/42759/37/22689/30450/63b40382F7411d238/d4622671799c75bd.jpg!q70.dpg"
  130. }
  131. ],
  132. "default": ""
  133. }
  134. ],
  135. "loopType": 1
  136. }
  137. }
  138. ]
  139. }