MCPcopy Create free account

hub / github.com/comeonzhj/Auto-Redbook-Skills / functions

Functions62 in github.com/comeonzhj/Auto-Redbook-Skills

↓ 3 callersFunctionestimateContentHeight
* 预估内容高度
scripts/render_xhs_v2.js:116
↓ 3 callersFunctionestimate_content_height
预估内容高度(基于字数和元素类型)
scripts/render_xhs_v2.py:132
↓ 3 callersFunctiongenerateCardHtml
* 生成正文卡片 HTML
scripts/render_xhs_v2.js:340
↓ 3 callersFunctiongenerate_card_html
生成正文卡片 HTML
scripts/render_xhs_v2.py:375
↓ 2 callersFunctiongenerate_card_html
生成正文卡片 HTML
scripts/render_xhs.py:276
↓ 2 callersFunctionmeasureContentHeight
* 测量内容高度
scripts/render_xhs_v2.js:492
↓ 2 callersFunctionmeasure_content_height
使用 Playwright 测量实际内容高度
scripts/render_xhs_v2.py:528
↓ 2 callersFunctionparse_cookie
解析 Cookie 字符串为字典
scripts/publish_xhs.py:72
↓ 2 callersFunctionprintHelp
* 打印帮助信息
scripts/render_xhs.js:146
↓ 2 callersFunctionrenderHtmlToImage
* 渲染 HTML 到图片
scripts/render_xhs_v2.js:566
↓ 2 callersFunctionrenderHtmlToImage
* 渲染 HTML 为图片
scripts/render_xhs.js:430
↓ 2 callersFunctionrender_html_to_image
使用 Playwright 将 HTML 渲染为图片
scripts/render_xhs.py:431
↓ 1 callersFunctionauto_split_content
自动切分内容:根据渲染后的高度自动分页
scripts/render_xhs.py:529
↓ 1 callersFunctionconvertMarkdownToHtml
* 将 Markdown 转换为 HTML
scripts/render_xhs_v2.js:238
↓ 1 callersFunctionconvert_markdown_to_html
将 Markdown 转换为 HTML
scripts/render_xhs.py:104
↓ 1 callersFunctionconvert_markdown_to_html
将 Markdown 转换为 HTML
scripts/render_xhs_v2.py:261
↓ 1 callersFunctiongenerateCardHtml
* 生成正文卡片 HTML
scripts/render_xhs.js:311
↓ 1 callersFunctiongenerateCoverHtml
* 生成封面 HTML
scripts/render_xhs_v2.js:264
↓ 1 callersFunctiongenerateCoverHtml
* 生成封面 HTML
scripts/render_xhs.js:217
↓ 1 callersFunctiongenerate_cover_html
生成封面 HTML
scripts/render_xhs.py:145
↓ 1 callersFunctiongenerate_cover_html
生成封面 HTML
scripts/render_xhs_v2.py:290
↓ 1 callersFunctionget_api_url
获取 API 服务地址
scripts/publish_xhs.py:99
↓ 1 callersMethodinit_client
初始化 xhs 客户端
scripts/publish_xhs.py:127
↓ 1 callersFunctionlistStyles
* 列出所有样式
scripts/render_xhs_v2.js:639
↓ 1 callersFunctionlist_styles
列出所有可用样式
scripts/render_xhs_v2.py:687
↓ 1 callersFunctionloadThemeCss
* 加载主题 CSS
scripts/render_xhs.js:202
↓ 1 callersFunctionload_cookie
从 .env 文件加载 Cookie
scripts/publish_xhs.py:43
↓ 1 callersFunctionload_theme_css
加载主题 CSS 样式
scripts/render_xhs.py:130
↓ 1 callersFunctionmain
()
scripts/render_xhs.py:638
↓ 1 callersFunctionmain
()
scripts/render_xhs_v2.py:696
↓ 1 callersFunctionmain
()
scripts/render_xhs_v2.js:715
↓ 1 callersFunctionmain
* 主函数
scripts/render_xhs.js:547
↓ 1 callersFunctionmain
()
scripts/publish_xhs.py:314
↓ 1 callersFunctionparseArgs
* 解析命令行参数
scripts/render_xhs_v2.js:651
↓ 1 callersFunctionparseArgs
* 解析命令行参数
scripts/render_xhs.js:80
↓ 1 callersFunctionparseMarkdownFile
* 解析 Markdown 文件,提取 YAML 头部和正文内容
scripts/render_xhs_v2.js:84
↓ 1 callersFunctionparseMarkdownFile
* 解析 Markdown 文件
scripts/render_xhs.js:170
↓ 1 callersFunctionparse_markdown_file
解析 Markdown 文件,提取 YAML 头部和正文内容
scripts/render_xhs.py:73
↓ 1 callersFunctionparse_markdown_file
解析 Markdown 文件,提取 YAML 头部和正文内容
scripts/render_xhs_v2.py:101
↓ 1 callersFunctionprocessAndRenderCards
* 处理和渲染卡片
scripts/render_xhs_v2.js:507
↓ 1 callersFunctionprocess_and_render_cards
处理卡片内容,检测高度并自动分页,然后渲染 返回最终生成的所有卡片文件路径
scripts/render_xhs_v2.py:569
↓ 1 callersMethodpublish
发布图文笔记
scripts/publish_xhs.py:157
↓ 1 callersFunctionrenderMarkdownToCards
* 主渲染函数
scripts/render_xhs_v2.js:582
↓ 1 callersFunctionrenderMarkdownToCards
* 主渲染函数
scripts/render_xhs.js:502
↓ 1 callersFunctionrender_html_to_image
使用 Playwright 将 HTML 渲染为图片
scripts/render_xhs_v2.py:545
↓ 1 callersFunctionrender_markdown_to_cards
主渲染函数:将 Markdown 文件渲染为多张卡片图片
scripts/render_xhs.py:589
↓ 1 callersFunctionrender_markdown_to_cards
主渲染函数:将 Markdown 文件渲染为多张卡片图片
scripts/render_xhs_v2.py:629
↓ 1 callersFunctionsmartSplitContent
* 智能拆分内容
scripts/render_xhs_v2.js:154
↓ 1 callersFunctionsmart_split_content
智能拆分内容到多张卡片 基于预估高度进行拆分,尽量保持段落完整
scripts/render_xhs_v2.py:173
↓ 1 callersFunctionsplitContentBySeparator
* 按照 --- 分隔符拆分正文为多张卡片内容
scripts/render_xhs_v2.js:108
↓ 1 callersFunctionsplitContentBySeparator
* 按分隔符拆分内容
scripts/render_xhs.js:194
↓ 1 callersFunctionsplit_content_by_separator
按照 --- 分隔符拆分正文为多张卡片内容
scripts/render_xhs.py:98
↓ 1 callersFunctionsplit_content_by_separator
按照 --- 分隔符拆分正文为多张卡片内容
scripts/render_xhs_v2.py:126
↓ 1 callersFunctionvalidate_cookie
验证 Cookie 是否包含必要的字段
scripts/publish_xhs.py:83
↓ 1 callersFunctionvalidate_images
验证图片文件是否存在
scripts/publish_xhs.py:104
Method__init__
(self, cookie: str)
scripts/publish_xhs.py:123
Method__init__
(self, cookie: str, api_url: str = None)
scripts/publish_xhs.py:205
Methodget_user_info
获取当前登录用户信息
scripts/publish_xhs.py:147
Methodget_user_info
获取当前登录用户信息
scripts/publish_xhs.py:251
Methodinit_client
初始化 API 客户端
scripts/publish_xhs.py:210
Methodpublish
发布图文笔记
scripts/publish_xhs.py:270
Methodsign_func
(uri, data=None, a1_param="", web_session="")
scripts/publish_xhs.py:141