Content Strategy Analyzer
Quick Start
- 1. User inputs target website URL + target country/language + publish frequency
- Use scripts/crawlwebsite.py to crawl website content
- AI analysis (considering target language and country)
- Confirm/adjust competitor list
- Use scripts/generateexcel.py to generate content plan Excel
- Output complete report (in target language)
Dependencies
Required packages:
CODEBLOCK0
Workflow
Step 1: Collect User Requirements
Must ask user for:
- 1. Target Website URL - Website to analyze
- Target Country - Country for content targeting (e.g., USA, UK, Germany, China)
- Target Language - Content language (e.g., English, Chinese, German, French)
- Publish Frequency - Weekly / Bi-weekly / Monthly
Step 2: Crawl Target Website
CODEBLOCK1
Step 3: AI Analysis (Multi-language)
Use Opencode AI for analysis:
- - Identify industry and competitors based on target country
- Output keywords in target language
- Include target country market in competitor analysis
Step 4: Generate Content Plan
Based on publish frequency:
- - Weekly: 12 weeks (3 months) × 1 topic
- Bi-weekly: 6 topics (one every two weeks)
- Monthly: 3 topics (one per month)
All content titles, topics, and ideas in target language.
Step 5: Output Report
- 1. Markdown format in conversation (target language)
- Excel file
Scripts
scripts/crawl_website.py
Crawls main website content, outputs structured JSON.
scripts/generate_excel.py
Generates Excel file from analysis results.
Input: analysis_result.json
Output: content_plan.xlsx
Output Format
Example User Input
| Parameter | Value |
|---|
| URL | https://example.com |
| Country |
Germany |
| Language | German |
| Frequency | Weekly |
Content Plan Output (German Example)
| Month | Week | Theme | Title | Type |
|---|
| Month 1 | Week 1 | Market Launch | ... | Article |
内容策略分析器
快速开始
- 1. 用户输入目标网站URL + 目标国家/语言 + 发布频率
- 使用scripts/crawlwebsite.py爬取网站内容
- AI分析(考虑目标语言和国家)
- 确认/调整竞争对手列表
- 使用scripts/generateexcel.py生成内容计划Excel
- 输出完整报告(使用目标语言)
依赖项
所需包:
bash
pip install requests beautifulsoup4 openpyxl
工作流程
第一步:收集用户需求
必须向用户询问:
- 1. 目标网站URL - 待分析的网站
- 目标国家 - 内容定位的国家(例如:美国、英国、德国、中国)
- 目标语言 - 内容语言(例如:英语、中文、德语、法语)
- 发布频率 - 每周/每两周/每月
第二步:爬取目标网站
bash
python3 scripts/crawl_website.py
第三步:AI分析(多语言)
使用Opencode AI进行分析:
- - 根据目标国家识别行业和竞争对手
- 以目标语言输出关键词
- 在竞争对手分析中包含目标国家市场
第四步:生成内容计划
基于发布频率:
- - 每周:12周(3个月)× 1个主题
- 每两周:6个主题(每两周一个)
- 每月:3个主题(每月一个)
所有内容标题、主题和创意均使用目标语言。
第五步:输出报告
- 1. 对话中的Markdown格式(目标语言)
- Excel文件
脚本
scripts/crawl_website.py
爬取网站主要内容,输出结构化JSON。
scripts/generate_excel.py
根据分析结果生成Excel文件。
输入:analysis_result.json
输出:content_plan.xlsx
输出格式
示例用户输入
| 参数 | 值 |
|---|
| URL | https://example.com |
| 国家 |
德国 |
| 语言 | 德语 |
| 频率 | 每周 |
内容计划输出(德语示例)
| 月份 | 周次 | 主题 | 标题 | 类型 |
|---|
| 第1个月 | 第1周 | 市场启动 | ... | 文章 |