From 41455fa4ee2c0c9ec204b48945953ab4a3ca6692 Mon Sep 17 00:00:00 2001 From: Julian Freeman Date: Thu, 12 Mar 2026 09:08:15 -0400 Subject: [PATCH] empty if no header --- README.md | 3 +++ google-script.js | 2 +- manifest.json | 6 +++--- sidepanel.html | 6 +----- 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..022e460 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# 商品信息抓取助手 + +项目使用 Gemini CLI 编写。 diff --git a/google-script.js b/google-script.js index 1806176..7b9324b 100644 --- a/google-script.js +++ b/google-script.js @@ -57,7 +57,7 @@ function doPost(e) { // 3. Map data to the (potentially updated) existingHeaders var row = existingHeaders.map(function(header) { var val = data[header]; - if (val === undefined || val === null) return "N/A"; + if (val === undefined || val === null) return ""; if (typeof val === 'object') return JSON.stringify(val); return val; }); diff --git a/manifest.json b/manifest.json index 9503fe8..0e6484e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 3, - "name": "AI 硬件抓取助手", + "name": "商品信息抓取助手", "version": "1.0", - "description": "使用 Gemini AI 从网站抓取产品数据。", + "description": "使用 Gemini AI 从网站抓取自定义的商品数据。", "permissions": [ "sidePanel", "scripting", @@ -20,7 +20,7 @@ "default_path": "sidepanel.html" }, "action": { - "default_title": "AI 硬件抓取助手", + "default_title": "商品信息抓取助手", "default_icon": { "16": "icons/icon16.png", "32": "icons/icon32.png", diff --git a/sidepanel.html b/sidepanel.html index 211f6ed..0ad52a8 100644 --- a/sidepanel.html +++ b/sidepanel.html @@ -3,15 +3,11 @@ - AI 硬件抓取助手 + 商品信息抓取助手
- -