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.

147 line
4.1 KiB

  1. {
  2. "id": 35,
  3. "name": "测试",
  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": "url(\"https://i.ebayimg.com/images/g/jyoAAOSwVl1kUFr-/s-l200.webp\")"
  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. 4,
  40. 2,
  41. 3
  42. ],
  43. "parameters": {
  44. "history": 1,
  45. "tabIndex": 0,
  46. "useLoop": false,
  47. "xpath": "",
  48. "wait": 0
  49. },
  50. "isInLoop": false
  51. },
  52. {
  53. "id": 1,
  54. "index": 1,
  55. "parentId": 0,
  56. "type": 0,
  57. "option": 1,
  58. "title": "打开网页",
  59. "sequence": [],
  60. "isInLoop": false,
  61. "position": 0,
  62. "parameters": {
  63. "useLoop": false,
  64. "xpath": "",
  65. "wait": 0,
  66. "url": "https://www.jd.com",
  67. "links": "https://www.jd.com",
  68. "scrollType": 0,
  69. "scrollCount": 0
  70. }
  71. },
  72. {
  73. "id": 3,
  74. "index": 2,
  75. "parentId": 0,
  76. "type": 0,
  77. "option": 3,
  78. "title": "提取数据",
  79. "sequence": [],
  80. "isInLoop": false,
  81. "position": 2,
  82. "parameters": {
  83. "history": 5,
  84. "tabIndex": -1,
  85. "useLoop": false,
  86. "xpath": "",
  87. "wait": 0,
  88. "paras": [
  89. {
  90. "nodeType": 0,
  91. "contentType": 4,
  92. "relative": false,
  93. "name": "参数1_背景图片地址",
  94. "desc": "",
  95. "relativeXPath": "/html/body/div[6]/div[5]/ul[1]/li[1]/a[1]/div[1]/div[1]",
  96. "exampleValues": [
  97. {
  98. "num": 0,
  99. "value": "url(\"https://i.ebayimg.com/images/g/jyoAAOSwVl1kUFr-/s-l200.webp\")"
  100. }
  101. ],
  102. "default": ""
  103. }
  104. ]
  105. }
  106. },
  107. {
  108. "id": 4,
  109. "index": 3,
  110. "parentId": 0,
  111. "type": 0,
  112. "option": 5,
  113. "title": "自定义操作",
  114. "sequence": [],
  115. "isInLoop": false,
  116. "position": 3,
  117. "parameters": {
  118. "history": 1,
  119. "tabIndex": 0,
  120. "useLoop": false,
  121. "xpath": "",
  122. "wait": 0,
  123. "codeMode": 0,
  124. "code": "alert(\"My name is naibo\")"
  125. }
  126. },
  127. {
  128. "id": 2,
  129. "index": 4,
  130. "parentId": 0,
  131. "type": 0,
  132. "option": 5,
  133. "title": "自定义操作",
  134. "sequence": [],
  135. "isInLoop": false,
  136. "position": 1,
  137. "parameters": {
  138. "history": 1,
  139. "tabIndex": 0,
  140. "useLoop": false,
  141. "xpath": "",
  142. "wait": 0,
  143. "codeMode": "1",
  144. "code": "ping www.baidu.com"
  145. }
  146. }
  147. ]
  148. }