▶ 流程ID:8338
这个流程是对流程8252的改进:

  • 支持输入一组1688商品详情页的网址,手动采集数据包;
  • 支持流程管理系统通过设置标准输入后进行自动调用,适用于上新检测后自动采集商品数据包。
    这些数据包在后继流程中可用于上传商品至电商平台,例如淘宝、拼多多等。

Selection_999(313).png

[
    {
        "id": "9e676aae0ae02a4a",
        "type": "tab",
        "label": "1688新品数据包",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "bc3a7ac722c62729",
        "type": "watch",
        "z": "9e676aae0ae02a4a",
        "name": "",
        "files": "data/8125_newon.log",
        "recursive": "",
        "x": 140,
        "y": 120,
        "wires": [
            [
                "360a3bf554f25ab0"
            ]
        ]
    },
    {
        "id": "e4d8819779058b2b",
        "type": "inject",
        "z": "9e676aae0ae02a4a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 110,
        "y": 60,
        "wires": [
            [
                "360a3bf554f25ab0"
            ]
        ]
    },
    {
        "id": "360a3bf554f25ab0",
        "type": "file in",
        "z": "9e676aae0ae02a4a",
        "name": "",
        "filename": "data/8125_newon.log",
        "filenameType": "str",
        "format": "lines",
        "chunk": false,
        "sendError": false,
        "encoding": "none",
        "allProps": false,
        "x": 400,
        "y": 120,
        "wires": [
            [
                "eae523d4f9763a0a"
            ]
        ]
    },
    {
        "id": "eae523d4f9763a0a",
        "type": "switch",
        "z": "9e676aae0ae02a4a",
        "name": "",
        "property": "parts",
        "propertyType": "msg",
        "rules": [
            {
                "t": "jsonata_exp",
                "v": "$.parts.index + 1 = $.parts.count",
                "vt": "jsonata"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": true,
        "outputs": 2,
        "x": 590,
        "y": 120,
        "wires": [
            [
                "09fcadec46ae064e",
                "eb6d26b5bdfff7bd"
            ],
            [
                "c2288509e5b4a2a6"
            ]
        ]
    },
    {
        "id": "09fcadec46ae064e",
        "type": "debug",
        "z": "9e676aae0ae02a4a",
        "name": "调试 9",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 750,
        "y": 40,
        "wires": []
    },
    {
        "id": "c2288509e5b4a2a6",
        "type": "debug",
        "z": "9e676aae0ae02a4a",
        "name": "调试 10",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 180,
        "wires": []
    },
    {
        "id": "eb6d26b5bdfff7bd",
        "type": "json",
        "z": "9e676aae0ae02a4a",
        "name": "",
        "property": "payload",
        "action": "obj",
        "pretty": false,
        "x": 750,
        "y": 120,
        "wires": [
            [
                "9be910601dc28ba5"
            ]
        ]
    },
    {
        "id": "9be910601dc28ba5",
        "type": "change",
        "z": "9e676aae0ae02a4a",
        "name": "设定商品网址",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\t    \"商品网址\": $map($.payload, function($v, $index){$index > 0 ? \"https://detail.1688.com/offer/\" & $v[0] & \".html\"})\t}",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 120,
        "y": 220,
        "wires": [
            [
                "3ea0b2a6fd71afd4",
                "c959bda9c17f86c2"
            ]
        ]
    },
    {
        "id": "c959bda9c17f86c2",
        "type": "dianshangji",
        "z": "9e676aae0ae02a4a",
        "name": "批量导出1688商品详情页数据包",
        "process": "8338",
        "browser": "",
        "closetab": true,
        "x": 410,
        "y": 220,
        "wires": [
            [
                "899d52b984a35a1c",
                "605fbd582bc03018"
            ],
            [],
            []
        ]
    },
    {
        "id": "899d52b984a35a1c",
        "type": "debug",
        "z": "9e676aae0ae02a4a",
        "name": "调试 11",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 220,
        "wires": []
    },
    {
        "id": "605fbd582bc03018",
        "type": "file",
        "z": "9e676aae0ae02a4a",
        "name": "",
        "filename": "data/8338_itemdata.log",
        "filenameType": "str",
        "appendNewline": true,
        "createDir": false,
        "overwriteFile": "false",
        "encoding": "none",
        "x": 810,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "id": "3ea0b2a6fd71afd4",
        "type": "debug",
        "z": "9e676aae0ae02a4a",
        "name": "调试 12",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 320,
        "y": 280,
        "wires": []
    }
]