新增美团 CPS 券定时抓取入库(北京试点),作为"销量/佣金排序"的本地数据源 #18
Reference in New Issue
Block a user
Delete Branch "intern/chenshuobo/meituan-coupon-etl-20260606"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景:美团搜索/供给对销量排序支持差(实测乱序)、且有 402 限流和单次召回上限,不适合
每次实时打接口排序。改为定时把券抓进本地 meituan_coupon 表,查询时从库里捞、自己按
销量/佣金排。
本次内容:
门店/距离/品牌/图 等),raw 列存整条原始返回避免漏字段;(source, product_view_sign) 唯一。
支持 --once(单轮,给 cron;线上每 1h)/ --loop --interval(本地循环,默认 10min)
实测:北京一轮约 2.5 分钟、入库约 2700 条;销量/佣金可直接从库里排序。
给接手同事:
(PG 的 DESC 默认把 NULL 排最前);佣金、价格 100% 有值。
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com