kristianfreeman/aiwriter
关于
Generate high-quality articles for your blog using a SERP workflow and AI
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Article Generation Tool
(README generated with AI. This is an old project I'm putting up for posterity in case anyone finds it useful 👍)
This is a Node.js application that generates articles based on a given keyword. It queries a search engine (DuckDuckGo), summarizes the content of the search results, and generates a draft article using the summaries with AI. The generated article can be published as a WordPress draft or saved as a Markdown file.
Getting Started
- Install the required dependencies:
npm install - Create a
.envfile and provide the necessary environment variables (e.g., API keys, credentials):cp .env.example .envand fill it out - Add your keywords to the
./keywordsdirectory, one keyword per file - Run the application:
node index.js
Usage
The application can be run in two modes:
Command Line: The
mainfunction accepts a keyword as an argument and an optionalskipPublishflag to skip publishing the article to WordPress.HTTP Server: The application runs an HTTP server that listens for GET requests at the
/endpoint. The keyword can be provided as a query parameter (?keyword=<keyword>), and theskip_publishquery parameter can be used to skip publishing the article to WordPress.
Example
curl http://localhost:5139/?keyword=ai&skip_publish=true
This will generate an article based on the keyword "ai", but skip publishing it to WordPress. The response will be a JSON object containing the generated titles and article content.
探索相关项目
加载中…