{"id":26896920,"url":"https://github.com/whotto/Long_article_generator","last_synced_at":"2025-04-01T04:02:25.640Z","repository":{"id":264145376,"uuid":"892484699","full_name":"whotto/Long_article_generator","owner":"whotto","description":"自动化批量生产万字长文章","archived":false,"fork":false,"pushed_at":"2024-11-22T08:43:01.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-22T09:24:41.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whotto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T07:45:24.000Z","updated_at":"2024-11-22T08:43:04.000Z","dependencies_parsed_at":"2024-11-22T09:25:05.092Z","dependency_job_id":"02e92cc6-26b0-4508-865a-4e0648f262ab","html_url":"https://github.com/whotto/Long_article_generator","commit_stats":null,"previous_names":["whotto/long_article_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whotto%2FLong_article_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whotto%2FLong_article_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whotto%2FLong_article_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whotto%2FLong_article_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whotto","download_url":"https://codeload.github.com/whotto/Long_article_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246580468,"owners_count":20800111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-01T04:02:23.360Z","updated_at":"2025-04-01T04:02:25.632Z","avatar_url":"https://github.com/whotto.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# 自动化批量生成万字长文和博客文章\n\nVersion: 1.1.0\n作者：玄清\n\n一个基于 AI 的专业文章生成工具，支持长文和博客两种格式的智能创作。本项目利用先进的 AI 技术，结合网络搜索和智能引用，生成高质量、有深度的文章内容。\n\n## 功能特点\n\n### 长文生成器 (Long Article Generator)\n\n- **智能章节规划**：自动规划文章结构，生成层次分明的章节\n- **专业引用系统**：\n  - 三种标准引用格式：\n    * 观点引用：根据[来源名称]显示\n    * 数据引用：数值（数据来源：[来源名称]）\n    * 直接引用：[来源名称]指出：\"引用内容\"\n  - 自动搜索相关资料并添加规范的引用链接\n  - 支持 Markdown 格式的引用标注\n- **内容丰富性**：\n  - 自动添加相关图片和图表\n  - 智能关键词扩展\n  - 专业术语解释\n- **格式规范**：\n  - 清晰的二级标题结构\n  - 标准的 Markdown 排版\n  - 自然的段落过渡\n- **写作风格**：\n  - 组合多位知名作家的写作特点\n  - 保持专业性与可读性的平衡\n  - 避免重复的章节总结，只保留文末总结\n\n### 博客生成器 (Blog Generator)\n\n- **多样化主题**：支持技术、科普、评论等多种博客类型\n- **SEO 优化**：\n  - 自动生成优化的标题\n  - 关键词智能分布\n  - 适合搜索引擎的内容结构\n- **互动性增强**：\n  - 引导性问题设计\n  - 读者互动部分\n  - 评论引导设计\n\n## 最新改进\n\n- **引用系统优化**：\n  - 标准化的三种引用格式\n  - 更准确的来源匹配\n  - 改进的链接生成机制\n- **内容结构优化**：\n  - 移除重复的章节标题\n  - 取消章节内的总结部分\n  - 保持更自然的行文结构\n- **写作风格提升**：\n  - 融合多位作家的写作特点\n  - 更自然的论述方式\n  - 专业性与可读性的平衡\n\n## 技术特点\n\n- **AI 模型集成**：\n  - 基于 OpenAI GPT-4 模型的智能创作\n  - 特别说明：本项目使用了自定义的 OpenAI API 接入点，将标准的 `https://api.openai.com` 替换为 `https://api.gptsapi.net`\n  - 多模型协同：不同任务使用不同的模型版本（如 gpt-4o-mini 和 chatgpt-4o-latest）\n\n- **智能搜索与引用**：\n  - 使用 Exa.ai 进行高质量网络搜索\n  - 智能匹配最相关的引用来源\n  - 自动生成规范的 Markdown 引用链接\n\n- **图片处理**：\n  - Unsplash API 集成实现专业图片配图\n  - 智能图片关键词提取\n  - 自动过滤重复图片\n\n- **性能优化**：\n  - 异步处理提升生成效率\n  - 智能缓存减少 API 调用\n  - 模块化设计便于扩展\n  - 错误重试机制\n\n- **内容质量保证**：\n  - 多轮内容优化\n  - 自动格式规范化\n  - 引用准确性验证\n  - 内容连贯性检查\n\n## 适用场景\n\n### 内容创作\n- **专业文章撰写**：\n  - 学术论文的初稿创作\n  - 技术文档的框架搭建\n  - 研究报告的内容生成\n\n- **商业写作**：\n  - 产品白皮书\n  - 市场分析报告\n  - 行业趋势研究\n\n- **教育培训**：\n  - 教材内容生成\n  - 课程大纲制作\n  - 学习资料整理\n\n### 内容运营\n- **新媒体运营**：\n  - 公众号文章批量生成\n  - 专栏内容规划\n  - 话题系列策划\n\n- **知识库建设**：\n  - 企业知识库搭建\n  - 培训材料生成\n  - 标准文档制作\n\n- **内容本地化**：\n  - 多语言内容适配\n  - 本地化内容创作\n  - 文化背景调整\n\n### 特殊用途\n- **研究与分析**：\n  - 文献综述生成\n  - 研究方向探索\n  - 数据分析报告\n\n- **创意写作**：\n  - 故事框架构建\n  - 情节发展规划\n  - 人物描写生成\n\n- **技术文档**：\n  - API 文档生成\n  - 技术方案撰写\n  - 系统说明文档\n\n## 安装说明\n\n1. 克隆项目\n```bash\ngit clone https://github.com/whotto/Long_article_generator.git\ncd Long_article_generator\n```\n\n2. 安装依赖\n```bash\npip install -r requirements.txt\n```\n\n3. 配置环境变量\n创建 `.env` 文件并添加以下配置：\n```\nOPENAI_API_KEY=your_openai_api_key\nEXA_API_KEY=your_exa_api_key\nUNSPLASH_ACCESS_KEY=your_unsplash_access_key\n```\n\n## 使用方法\n\n### 长文生成\n\n命令行运行：Python3 long_article_generator.py test.md\n\n```python\nfrom long_article_generator import LongArticleGenerator\n\n# 创建生成器实例\ngenerator = LongArticleGenerator(\n    title=\"你的文章标题\",\n    keywords=[\"关键词1\", \"关键词2\"]\n)\n\n# 生成文章\narticle = await generator.generate()\n```\n\n### 博客生成\n\n命令行运行：Python3 blog_generator.py test.md \n\n```python\nfrom blog_generator import BlogGenerator\n\n# 创建生成器实例\ngenerator = BlogGenerator(\n    title=\"博客标题\",\n    style=\"tech\"  # 可选: tech, popular, review\n)\n\n# 生成博客\nblog = await generator.generate()\n```\n\n## 注意事项\n\n- 需要确保有足够的 API 配额\n- 建议在生成长文时适当控制文章长度\n- 生成的内容建议进行人工审核和优化\n- 遵守 API 使用条款和知识产权规范\n\n## 贡献指南\n\n欢迎提交 Issues 和 Pull Requests 来改进项目。请确保：\n\n1. 代码符合项目的编码规范\n2. 添加适当的测试用例\n3. 更新相关文档\n\n## 许可证\n\nMIT License\n\n## 联系方式\n\n如有问题或建议，欢迎提交 Issue 或通过以下方式联系：\n\n- GitHub Issues\n- Email: grow8org@gmail.com\n- 博客：https://yuedu.biz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhotto%2FLong_article_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhotto%2FLong_article_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhotto%2FLong_article_generator/lists"}