skills/tools/x-report-generator/SKILL.md
使用Playwright浏览器爬取X(Twitter)真实数据,分析统计信息,生成精美的HTML报告面板并导出为高清图片。
npx skillsauth add aidotnet/moyucode x-report-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用Playwright浏览器自动化技术爬取X(Twitter)平台的真实数据,进行数据分析和统计,生成精美的HTML可视化报告面板,并将其渲染为高清图片。
/x-report command# 首次使用:登录并保存cookies
python scripts/x_report_generator.py login --cookies cookies.json
# 搜索关键词并生成报告
python scripts/x_report_generator.py search "AI" --limit 50 --output report.png --cookies cookies.json
# 分析用户推文
python scripts/x_report_generator.py user "elonmusk" --limit 30 --output user_report.png
# 使用浅色主题
python scripts/x_report_generator.py search "Python" --theme light --output report.png
# 仅生成HTML(不转图片)
python scripts/x_report_generator.py search "coding" --html-only --output report.html
# 显示浏览器窗口(调试用)
python scripts/x_report_generator.py search "test" --no-headless --output report.png
pip install playwright
playwright install chromium
twitter, x, scraper, report, analytics, visualization, playwright, html-to-image
development
使用CSS选择器从网页提取数据,支持分页、限速和多种输出格式。
tools
生成UUID(v1、v4、v5)和其他唯一标识符,如ULID、nanoid。
tools
使用各种服务缩短URL,并为短链接生成二维码。
development
使用免费翻译API在语言之间翻译文本,支持批量处理和文件翻译。