适用人群
专为定期发布博客的网站所有者、营销人员、代理机构和独立创作者打造,帮助您实现更高效的创作流程。在 Windows 电脑上使用它,即可快速生成草稿文章、匹配图片以及可直接部署的 HTML 博客输出——无需从零开始搭建自定义发布系统。
典型的使用场景包括:公司博客、垂直领域内容站点、产品营销页面,以及任何你已通过 SSH 控制 Web 根目录并希望通过一条命令实现可重复发布的网站。
简短的设置计划
[第 0 阶段] - 将下载的路径 /AI-Article-Automation-1Command/ 解压到您的“文档”文件夹中
将 ZIP 文件解压到“文档”文件夹中,以便在编辑设置前准备好项目路径。
[第一阶段] - 使用您的详细信息更新设置文件:
product:
product_root: "C:/Users/YourWindowsUser/AI-Article-Automation-1Command"
articles_repo: "C:/Users/YourWindowsUser/AI-Article-Automation-1Command/articles-repo"
deploy_root: "C:/Users/YourWindowsUser/AI-Article-Automation-1Command/website-output"
blog_posts_per_page: 20
website:
name: "My Website"
origin: "https://www.example.com"
blog_list_url: "https://www.example.com/blog.html"
sources:
- "https://www.example.com/news/"
- "https://www.example.com/blog/feed/"
- "https://www.example-news.com/rss"
deploy:
ssh_host: "YOUR SERVER IP"
remote_web_root: "/var/www/YOUR WEBSITE ROOT"
[第二阶段] - 上传并重命名文章图片。
将您的文章图片集添加到项目文件夹中,并按照包说明的要求在运行发布命令之前重命名文件。
[三阶段] - 将您的详细信息输入命令并逐个运行 PowerShell:
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command\SETUP-First\scripts"
powershell -ExecutionPolicy Bypass -File .\01-check-system.ps1
powershell -ExecutionPolicy Bypass -File .\02-install-dependencies.ps1
powershell -ExecutionPolicy Bypass -File .\03-install-ollama-model.ps1
>> 试运行
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1 -DryRun
>> 检查输出文件夹。
>>> 实时发布
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 3
黄色高亮标记的值应替换为您自己的路径、网站 URL 和服务器详细信息。
更多信息
该脚本自动化了使用您自己的图片创建文章的过程。文章的源文本取自其他真实的博客和文章。最终结果的示例:https://realestate.creativestudiostars.com/blog.html通过添加脚本,还可以配置为生成图像。此情况下的结果示例如下:https://creativestudiostars.com/blog.html