流程管理系统9. 阿里巴巴1688店铺新品数据包批量导出

原创 电商记 新零售日志

访问电商记网站( dianshangji.com )安装电商记插件和流程管理系统可使用本功能。 点击文章底部 [ 阅读原文 ] 链接可查看插件安装说明。

这套流程用于采集阿里巴巴1688店铺的新品数据包。用户需安装两个软件:

  • 电商记插件

  • 流程管理系统

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

  • 支持输入一组1688商品详情页的网址,手动采集数据包;

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

[
{
"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": []
}
]

更多参考资料请访问网站社区。


关于图形化编程的基础知识,请点击下面的《能格编程》图标,进入公众号教程。

学习图形化编程的最新课程,零基础入门,以3D沙盒游戏为练习环境,好学又好玩。这门课程很适合作为学习办公自动化和Python编程语言的预备课程。如果你想学习编程,或者想教孩子编程,那么这门课就是你的不二选择,欢迎关注公众号“能格编程”。




预览时标签不可点

微信扫一扫
关注该公众号

继续滑动看下一个
新零售日志
向上滑动看下一个
知道了
微信扫一扫
使用小程序
取消 允许
取消 允许
视频 小程序 ,轻点两下取消赞 在看 ,轻点两下取消在看 分享 留言 收藏