Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

161 linhas
4.4 KiB

  1. {
  2. "id": 53,
  3. "name": "新web采集任务",
  4. "url": "https://www.jd.com",
  5. "links": "https://www.jd.com",
  6. "create_time": "5/19/2023, 2:22:16 AM",
  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": "自定义操作2",
  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. "scrollType": 0,
  72. "scrollCount": 0
  73. }
  74. },
  75. {
  76. "id": 2,
  77. "index": 2,
  78. "parentId": 0,
  79. "type": 1,
  80. "option": 8,
  81. "title": "循环",
  82. "sequence": [
  83. 3,
  84. 4
  85. ],
  86. "isInLoop": false,
  87. "position": 1,
  88. "parameters": {
  89. "history": 1,
  90. "tabIndex": 0,
  91. "useLoop": false,
  92. "xpath": "",
  93. "wait": 3,
  94. "beforeJS": "",
  95. "beforeJSWaitTime": 0,
  96. "afterJS": "",
  97. "afterJSWaitTime": 0,
  98. "scrollType": 0,
  99. "scrollCount": 0,
  100. "loopType": "5",
  101. "pathList": "",
  102. "textList": "",
  103. "code": "return window.innerHeight > 200",
  104. "waitTime": 0,
  105. "exitCount": 0,
  106. "historyWait": 2
  107. }
  108. },
  109. {
  110. "id": 3,
  111. "index": 3,
  112. "parentId": 2,
  113. "type": 0,
  114. "option": 5,
  115. "title": "自定义操作2",
  116. "sequence": [],
  117. "isInLoop": true,
  118. "position": 0,
  119. "parameters": {
  120. "history": 1,
  121. "tabIndex": 0,
  122. "useLoop": false,
  123. "xpath": "",
  124. "wait": 0,
  125. "beforeJS": "",
  126. "beforeJSWaitTime": 0,
  127. "afterJS": "",
  128. "afterJSWaitTime": 0,
  129. "codeMode": 0,
  130. "code": "return window.innerHeight",
  131. "waitTime": 0,
  132. "recordASField": "1"
  133. }
  134. },
  135. {
  136. "id": 4,
  137. "index": 4,
  138. "parentId": 2,
  139. "type": 0,
  140. "option": 5,
  141. "title": "自定义操作",
  142. "sequence": [],
  143. "isInLoop": true,
  144. "position": 1,
  145. "parameters": {
  146. "history": 1,
  147. "tabIndex": 0,
  148. "useLoop": false,
  149. "xpath": "",
  150. "wait": 0,
  151. "beforeJS": "",
  152. "beforeJSWaitTime": 0,
  153. "afterJS": "",
  154. "afterJSWaitTime": 0,
  155. "codeMode": "1",
  156. "code": "python D:/test.py",
  157. "waitTime": 0,
  158. "recordASField": "0"
  159. }
  160. }
  161. ]
  162. }