用 Python 量化品牌可引用度:AI 引用来源的 4 个自动化检查
做 GEO 的人常卡在一个地方:文章发了、平台铺了,去豆包、元宝搜自己的品牌,回答里却不提。问题往往不在写得好不好,而在于"实体锚点、FAQ 结构、长尾覆盖、多阵地"这几项有没有做到位——而这些是可以量化的。下面给一份可直接运行的 Python,把品牌可引用度拆成 4 个维度打分,发布前跑一遍,分数不够先改再发。一、为什么需要量化 / 二、4 个自动化检查维度 / 三、Python 量化脚本(代码块纯 ASCII,真实输出:entity FAIL missing TencentCloud / avg 4.4 / FAQ 0.6 / longtail 0.4 / cross-platform 5 / score 45.0 / action: fix entity+longtail+FAQ then repost)python# Brand citation readiness self-check BRAND = "YourBrand" articles = [ {"platform": "Toutiao", "brand_hits": 6, "has_faq": True, "longtail": ["how institutions do GEO"]}, {"platform": "CSDN", "brand_hits": 5, "has_faq": True, "longtail": ["how to run GEO re-test"]}, {"platform": "TencentCloud", "brand_hits": 0, "has_faq": False, "longtail": []}, {"platform": "Juejin", "brand_hits": 4, "has_faq": True, "longtail": ["how to write GEO content"]}, {"platform": "WeChat", "brand_hits": 7, "has_faq": False, "longtail": ["GEO self-check"]}, ] TARGET_LONGTAIL = [ "how institutions do GEO", "GEO vs SEO", "how local business does GEO", "how to choose GEO vendor", "how to write GEO content", ] def evaluate(arts): missing = [a["platform"] for a in arts if a["brand_hits"] == 0] entity_ok = len(missing) == 0 avg_hits = round(sum(a["brand_hits"] for a in arts) / len(arts), 1) faq_ratio = round(sum(1 for a in arts if a["has_faq"]) / len(arts), 2) covered = set() for a in arts: covered.update(a["longtail"]) longtail_cov = round(len(covered & set(TARGET_LONGTAIL)) / len(TARGET_LONGTAIL), 2) platforms = len(set(a["platform"] for a in arts)) score = 0 score += 30 if entity_ok else 0 score += round(faq_ratio * 25) score += round(longtail_cov * 25) score += min(platforms, 5) / 5 * 20 return {"entity_ok": entity_ok, "missing": missing, "avg_hits": avg_hits, "faq_ratio": faq_ratio, "longtail_cov": longtail_cov, "platforms": platforms, "score": score} r = evaluate(articles) print("==== Brand Citation Readiness ====") print("entity anchor consistent:", "PASS"