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.

334 lines
12 KiB

9 months ago
9 months ago
9 months ago
  1. {
  2. "id": 57,
  3. "name": "图片下载",
  4. "url": "https://www.jd.com",
  5. "links": "https://www.jd.com",
  6. "create_time": "5/20/2023, 8:18:15 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": "参数3_图片地址",
  25. "desc": "",
  26. "type": "string",
  27. "exampleValue": "//m.360buyimg.com/babel/jfs/t1/223646/1/18719/254758/6458a465F7a57af84/f44d7d983018d9ed.png"
  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. 4
  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": -1,
  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[4]/div[1]/div[4]/a",
  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. "allXPaths": [
  108. "/html/body/div[4]/div[1]/div[4]/a[1]",
  109. "//a[contains(., '平板電腦')]"
  110. ]
  111. }
  112. },
  113. {
  114. "id": -1,
  115. "index": 3,
  116. "parentId": 2,
  117. "type": 0,
  118. "option": 3,
  119. "title": "提取数据",
  120. "sequence": [],
  121. "isInLoop": true,
  122. "position": 0,
  123. "parameters": {
  124. "history": 4,
  125. "tabIndex": -1,
  126. "useLoop": false,
  127. "xpath": "",
  128. "wait": 0,
  129. "beforeJS": "",
  130. "beforeJSWaitTime": 0,
  131. "afterJS": "",
  132. "afterJSWaitTime": 0,
  133. "params": [
  134. {
  135. "nodeType": 1,
  136. "contentType": 0,
  137. "relative": true,
  138. "name": "参数1_链接文本",
  139. "desc": "",
  140. "extractType": 0,
  141. "relativeXPath": "",
  142. "allXPaths": "",
  143. "exampleValues": [
  144. {
  145. "num": 0,
  146. "value": "平板電腦"
  147. },
  148. {
  149. "num": 1,
  150. "value": "爆款耳機"
  151. },
  152. {
  153. "num": 2,
  154. "value": "手機"
  155. },
  156. {
  157. "num": 3,
  158. "value": "數據線"
  159. },
  160. {
  161. "num": 4,
  162. "value": "年貨節"
  163. }
  164. ],
  165. "default": "",
  166. "beforeJS": "",
  167. "beforeJSWaitTime": 0,
  168. "JS": "",
  169. "JSWaitTime": 0,
  170. "afterJS": "",
  171. "afterJSWaitTime": 0,
  172. "downloadPic": 0
  173. },
  174. {
  175. "nodeType": 2,
  176. "contentType": 0,
  177. "relative": true,
  178. "name": "参数2_链接地址",
  179. "desc": "",
  180. "relativeXPath": "",
  181. "allXPaths": "",
  182. "exampleValues": [
  183. {
  184. "num": 0,
  185. "value": "https://search.jd.com/Search?keyword=%E5%B9%B3%E6%9D%BF%E7%94%B5%E8%84%91&enc=utf-8&wq=%E5%B9%B3%E6%9D%BF%E7%94%B5%E8%84%91&pvid=84c62205dccd43dfad1b6eb5fdf5077b"
  186. },
  187. {
  188. "num": 1,
  189. "value": "https://audio.jd.com/"
  190. },
  191. {
  192. "num": 2,
  193. "value": "https://search.jd.com/search?keyword=%E6%89%8B%E6%9C%BA&enc=utf-8&qrst=1&rt=1&stop=1&vt=2&wq=%E6%89%8B%E6%9C%BA&cid2=653&cid3=655&ev=exbrand_%E5%B0%8F%E7%B1%B3%EF%BC%88MI%EF%BC%89%5E&uc=0#J_searchWrap"
  194. },
  195. {
  196. "num": 3,
  197. "value": "https://mall.jd.com/index-1000007418.html"
  198. },
  199. {
  200. "num": 4,
  201. "value": "https://pro.jd.com/mall/active/22WyJjMqTCbvjj1YB3pSJssBonLR/index.html"
  202. }
  203. ],
  204. "default": "",
  205. "beforeJS": "",
  206. "beforeJSWaitTime": 0,
  207. "JS": "",
  208. "JSWaitTime": 0,
  209. "afterJS": "",
  210. "afterJSWaitTime": 0,
  211. "downloadPic": 0
  212. }
  213. ],
  214. "loopType": 1
  215. }
  216. },
  217. {
  218. "id": 2,
  219. "index": 4,
  220. "parentId": 0,
  221. "type": 1,
  222. "option": 8,
  223. "title": "循环",
  224. "sequence": [
  225. 5
  226. ],
  227. "isInLoop": false,
  228. "position": 1,
  229. "parameters": {
  230. "history": 4,
  231. "tabIndex": -1,
  232. "useLoop": false,
  233. "xpath": "/html/body/div[5]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[1]/div/div[1]/div[1]/a[1]/img[1]",
  234. "wait": 0,
  235. "beforeJS": "",
  236. "beforeJSWaitTime": 0,
  237. "afterJS": "",
  238. "afterJSWaitTime": 0,
  239. "scrollType": 0,
  240. "scrollCount": 0,
  241. "loopType": 1,
  242. "pathList": "",
  243. "textList": "",
  244. "code": "",
  245. "waitTime": 0,
  246. "exitCount": 0,
  247. "historyWait": 2,
  248. "allXPaths": [
  249. "/html/body/div[5]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/a[1]/img[1]",
  250. "//img[contains(., '')]"
  251. ]
  252. }
  253. },
  254. {
  255. "id": 3,
  256. "index": 5,
  257. "parentId": 2,
  258. "type": 0,
  259. "option": 3,
  260. "title": "提取数据",
  261. "sequence": [],
  262. "isInLoop": true,
  263. "position": 0,
  264. "parameters": {
  265. "history": 4,
  266. "tabIndex": -1,
  267. "useLoop": false,
  268. "xpath": "",
  269. "wait": 0,
  270. "beforeJS": "",
  271. "beforeJSWaitTime": 0,
  272. "afterJS": "",
  273. "afterJSWaitTime": 0,
  274. "params": [
  275. {
  276. "nodeType": 4,
  277. "contentType": 0,
  278. "relative": true,
  279. "name": "参数3_图片地址",
  280. "desc": "",
  281. "extractType": 0,
  282. "relativeXPath": "",
  283. "allXPaths": "",
  284. "exampleValues": [
  285. {
  286. "num": 0,
  287. "value": "//m.360buyimg.com/babel/jfs/t1/223646/1/18719/254758/6458a465F7a57af84/f44d7d983018d9ed.png"
  288. },
  289. {
  290. "num": 1,
  291. "value": "//m.360buyimg.com/babel/s1420x740_jfs/t1/194401/20/32669/76553/64142a96F7733e6ad/cf2727848c86cf45.jpg!q70.dpg"
  292. },
  293. {
  294. "num": 2,
  295. "value": "//m.360buyimg.com/babel/s1420x740_jfs/t1/222655/28/27238/153145/644b858eF2cd1200f/e37bd7da42a814b0.jpg!q70.dpg"
  296. },
  297. {
  298. "num": 3,
  299. "value": "//m.360buyimg.com/babel/s710x370_jfs/t1/197659/30/31344/62825/640fd751F694963ed/a6e1ac2e5c27f160.jpg!q70.dpg"
  300. },
  301. {
  302. "num": 4,
  303. "value": "//m.360buyimg.com/babel/s1420x740_jfs/t1/194401/20/32669/76553/64142a96F7733e6ad/cf2727848c86cf45.jpg!q70.dpg"
  304. },
  305. {
  306. "num": 5,
  307. "value": "//m.360buyimg.com/babel/s1420x740_jfs/t1/222655/28/27238/153145/644b858eF2cd1200f/e37bd7da42a814b0.jpg!q70.dpg"
  308. },
  309. {
  310. "num": 6,
  311. "value": "//m.360buyimg.com/babel/s710x370_jfs/t1/197659/30/31344/62825/640fd751F694963ed/a6e1ac2e5c27f160.jpg!q70.dpg"
  312. },
  313. {
  314. "num": 7,
  315. "value": "//m.360buyimg.com/babel/jfs/t1/223646/1/18719/254758/6458a465F7a57af84/f44d7d983018d9ed.png"
  316. },
  317. {
  318. "num": 8,
  319. "value": "//m.360buyimg.com/babel/s1420x740_jfs/t1/194401/20/32669/76553/64142a96F7733e6ad/cf2727848c86cf45.jpg!q70.dpg"
  320. }
  321. ],
  322. "default": "",
  323. "beforeJS": "",
  324. "beforeJSWaitTime": 0,
  325. "JS": "",
  326. "JSWaitTime": 0,
  327. "afterJS": "",
  328. "afterJSWaitTime": 0,
  329. "downloadPic": 1
  330. }
  331. ]
  332. }
  333. }
  334. ]
  335. }