生成产品文案,通过获取 asin 相似关键词,分析并生成表格

mrh d39ac9063f 新增AI提示词分析竞品,人类可读的输出格式 8 달 전
.vscode ffefa3bf7b 完成批量写入 excel 8 달 전
config 7c904ad01d 完成 MongoDB ,worker 提交任务并数据解析 mhtml 存到 MongoDB 8 달 전
docs b4594cde68 完成AI提示词分析竞品的定义 8 달 전
src d39ac9063f 新增AI提示词分析竞品,人类可读的输出格式 8 달 전
tests 9820ba46f2 修改 product 爬取结果字段,并完成迁移。新增主关键词分析字段。备份数据库 I:\eng\backup\mongo\20250326_02_05_03 8 달 전
utils 7c904ad01d 完成 MongoDB ,worker 提交任务并数据解析 mhtml 存到 MongoDB 8 달 전
.clinerules d39ac9063f 新增AI提示词分析竞品,人类可读的输出格式 8 달 전
.clinerules-code 7c904ad01d 完成 MongoDB ,worker 提交任务并数据解析 mhtml 存到 MongoDB 8 달 전
.gitignore 04c29fb750 新增数据库备份。修复竞品爬取图片下载到S3路径错误的问题。 8 달 전
README.md 04c29fb750 新增数据库备份。修复竞品爬取图片下载到S3路径错误的问题。 8 달 전
pyproject.toml 8e47047418 基本的 asin 获取 9 달 전

README.md

uv pip install universal_pathlib

备份数据库

下载: https://www.mongodb.com/try/download/database-tools 文档 : https://www.mongodb.com/docs/database-tools/

cd G:\program\MongoDB\mongodb-database-tools-windows-x86_64-100.11.0\bin

$timestr = Get-Date -Format "yyyyMMdd_HH_mm_ss";G:\program\MongoDB\mongodb-database-tools-windows-x86_64-100.11.0\bin\mongodump.exe --uri="mongodb://sv-v2:27017" -o I:\eng\backup\mongo\$timestr

# 首先要加载 env 变量, J:\eng-sftp\nextcloud\eng\my-document\restic.md
restic backup G:\code\amazone\copywriting_production\output\mongodb_backup
restic snapshots -H pc
restic ls -l 04c9313f

备份集合到另一个数据库

G:\program\MongoDB\mongodb-database-tools-windows-x86_64-100.11.0\bin\mongodump.exe --uri="mongodb://sv-v2:27017/amazone" --collection=Product -o G:\code\amazone\copywriting_production\output\temp
$timestr = Get-Date -Format "yyyyMMdd_HH_mm_ss"
echo $timestr
G:\program\MongoDB\mongodb-database-tools-windows-x86_64-100.11.0\bin\mongorestore.exe --uri="mongodb://sv-v2:27017/" --nsInclude="amazone.Product" --nsFrom="amazone.Product" --nsTo="backup_amazone.Product123" G:\code\amazone\copywriting_production\output\temp\amazone\Product.bson --drop

G:\program\MongoDB\mongodb-database-tools-windows-x86_64-100.11.0\bin\mongorestore.exe --uri="mongodb://sv-v2:27017/backup_amazone" --collection=Product G:\code\amazone\copywriting_production\output\temp
mongoimport --uri="mongodb://sv-v2:27017" --collection=users --file=G:\code\amazone\copywriting_production\output\mongodb_backup\users.json