Files

1 line
11 KiB
JSON

{"repo": "chriscco/pusher-go", "files": {"README.md": {"0850919d598a58386dcc6e9ad7231622c58adf78": {"t": 1785746425.353822, "n": 1331, "h": "7875d9eb93843ca7", "c": "# Pusher-Go 自动化的新闻拉取工具 \n\nPusher-Go 可以定时自动拉取当日的新闻和股市数据,并通过调用大模型服务对当日的信息进行总结,并发送至用户邮箱\n\nPusher-Go 目前支持的新闻和股市API: \n\n- [GNews](https://gnews.io)\n- [Tushare](https://tushare.pro) **TODO**\n## Configuration \n在```pusher-go/cli/config```中创建一个配置文件```config.local.yaml```, 如下: \n\n> [!IMPORTANT]\n> 为了能正常发送邮件, 需要发送方开通 SMTP 功能\n\n```yaml\nmodel: \n api_key: \"sk-xxx\"\n model_name: \"deepseek-chat\"\n endpoint: \"https://api.deepseek.com\"\n\ng_news: \n api_key: \"xxx\"\n keywords: [\"agriculture\", \"technology\", \"Artificial Intelligence\"]\n endpoint: \"https://gnews.io/api/v4/top-headlines?\" \n categories: [\"business\", \"technology\", \"world\"]\n languages: [\"en\", \"zh\"] \n countries: [\"hk\", \"cn\", \"us\"] \n max_results: 10\n\nemail: \n to: [\"xxx@gmail.com\"]\n subject: \"Daily Report - \"\n from: \"xxx@gmail.com\" \n password: \"xxx\"\n\nfile: \n file_name_news: \"./data/news/news.txt\"\n file_name_stock: \"./data/stock/stock.txt\" \n file_name_model_response: \"./data/model/model.txt\"\n```\n\n## Installation \n\n```bash\ngit clone https://github.com/chriscco/pusher-go.git\ncd pusher-go\n```\n授予部署脚本运行权限: \n```bash\nchmod +x script.sh \n```\n通过 crontab 或是其他方式将脚本加入系统的定时任务中, 如: \n```bash\ncrontab -e\n# 将下面的代码加入 crontab 的脚本文件中\n# 在洛杉矶时间晚上 7 点运行脚本\n0 19 * * * TZ=\"America/Los_Angeles\" /home/ubuntu/pusher/script.sh >> /tmp/cron_debug.log 2>&1\n```\n> [!IMPORTANT]\n> 如果需要修改脚本或代码, 确保不要出现相对路径\n"}, "3cd02793ecfeb8d46621f74c0ea3793535cbdee6": {"t": 1785764047.7188935, "n": 1331, "h": "7875d9eb93843ca7", "c": "# Pusher-Go 自动化的新闻拉取工具 \n\nPusher-Go 可以定时自动拉取当日的新闻和股市数据,并通过调用大模型服务对当日的信息进行总结,并发送至用户邮箱\n\nPusher-Go 目前支持的新闻和股市API: \n\n- [GNews](https://gnews.io)\n- [Tushare](https://tushare.pro) **TODO**\n## Configuration \n在```pusher-go/cli/config```中创建一个配置文件```config.local.yaml```, 如下: \n\n> [!IMPORTANT]\n> 为了能正常发送邮件, 需要发送方开通 SMTP 功能\n\n```yaml\nmodel: \n api_key: \"sk-xxx\"\n model_name: \"deepseek-chat\"\n endpoint: \"https://api.deepseek.com\"\n\ng_news: \n api_key: \"xxx\"\n keywords: [\"agriculture\", \"technology\", \"Artificial Intelligence\"]\n endpoint: \"https://gnews.io/api/v4/top-headlines?\" \n categories: [\"business\", \"technology\", \"world\"]\n languages: [\"en\", \"zh\"] \n countries: [\"hk\", \"cn\", \"us\"] \n max_results: 10\n\nemail: \n to: [\"xxx@gmail.com\"]\n subject: \"Daily Report - \"\n from: \"xxx@gmail.com\" \n password: \"xxx\"\n\nfile: \n file_name_news: \"./data/news/news.txt\"\n file_name_stock: \"./data/stock/stock.txt\" \n file_name_model_response: \"./data/model/model.txt\"\n```\n\n## Installation \n\n```bash\ngit clone https://github.com/chriscco/pusher-go.git\ncd pusher-go\n```\n授予部署脚本运行权限: \n```bash\nchmod +x script.sh \n```\n通过 crontab 或是其他方式将脚本加入系统的定时任务中, 如: \n```bash\ncrontab -e\n# 将下面的代码加入 crontab 的脚本文件中\n# 在洛杉矶时间晚上 7 点运行脚本\n0 19 * * * TZ=\"America/Los_Angeles\" /home/ubuntu/pusher/script.sh >> /tmp/cron_debug.log 2>&1\n```\n> [!IMPORTANT]\n> 如果需要修改脚本或代码, 确保不要出现相对路径\n"}, "9defc08789c766d62da488558fbfe61789e3b9a3": {"t": 1785764048.8981538, "n": 1300, "h": "5dc7e1bebb39f893", "c": "# Pusher-Go 自动化的新闻拉取工具 \n\nPusher-Go 可以定时自动拉取当日的新闻和股市数据,并通过调用大模型服务对当日的信息进行总结,并发送至用户邮箱\n\nPusher-Go 目前支持的新闻和股市API: \n\n- [GNews](https://gnews.io)\n- [Tushare](https://tushare.pro) **TODO**\n## Configuration \n在```pusher-go/cli/config```中创建一个配置文件```config.local.yaml```, 如下: \n\n> 为了能正常发送邮件, 需要发送方开通 SMTP 功能\n```yaml\nmodel: \n api_key: \"sk-xxx\"\n model_name: \"deepseek-chat\"\n endpoint: \"https://api.deepseek.com\"\n\ng_news: \n api_key: \"xxx\"\n keywords: [\"agriculture\", \"technology\", \"Artificial Intelligence\"]\n endpoint: \"https://gnews.io/api/v4/top-headlines?\" \n categories: [\"business\", \"technology\", \"world\"]\n languages: [\"en\", \"zh\"] \n countries: [\"hk\", \"cn\", \"us\"] \n max_results: 10\n\nemail: \n to: [\"xxx@gmail.com\"]\n subject: \"Daily Report - \"\n from: \"xxx@gmail.com\" \n password: \"xxx\"\n\nfile: \n file_name_news: \"./data/news/news.txt\"\n file_name_stock: \"./data/stock/stock.txt\" \n file_name_model_response: \"./data/model/model.txt\"\n```\n\n## Installation \n\n```bash\ngit clone https://github.com/chriscco/pusher-go.git\ncd pusher-go\n```\n授予部署脚本运行权限: \n```bash\nchmod +x script.sh \n```\n通过 crontab 或是其他方式将脚本加入系统的定时任务中, 如: \n```bash\ncrontab -e\n# 将下面的代码加入 crontab 的脚本文件中\n# 在洛杉矶时间晚上 7 点运行脚本\n0 19 * * * TZ=\"America/Los_Angeles\" /home/ubuntu/pusher/script.sh >> /tmp/cron_debug.log 2>&1\n```\n> 如果需要修改脚本或代码, 确保不要出现相对路径\n"}, "7ce6c90f432d4386ed980f5f568ae787af5e9189": {"t": 1785764050.3318045, "n": 1203, "h": "c8fa1fd5ce1263a1", "c": "# Pusher-Go 自动化的新闻拉取工具 \n\nPusher-Go 可以定时自动拉取当日的新闻和股市数据,并通过调用大模型服务对当日的信息进行总结,并发送至用户邮箱\n\n## Configuration \n在```pusher-go/cli/config```中创建一个配置文件```config.local.yaml```, 如下: \n\n> 为了能正常发送邮件, 需要发送方开通 SMTP 功能\n```yaml\nmodel: \n api_key: \"sk-xxx\"\n model_name: \"deepseek-chat\"\n endpoint: \"https://api.deepseek.com\"\n\ng_news: \n api_key: \"xxx\"\n keywords: [\"agriculture\", \"technology\", \"Artificial Intelligence\"]\n endpoint: \"https://gnews.io/api/v4/top-headlines?\" \n categories: [\"business\", \"technology\", \"world\"]\n languages: [\"en\", \"zh\"] \n countries: [\"hk\", \"cn\", \"us\"] \n max_results: 10\n\nemail: \n to: [\"xxx@gmail.com\"]\n subject: \"Daily Report - \"\n from: \"xxx@gmail.com\" \n password: \"xxx\"\n\nfile: \n file_name_news: \"./data/news/news.txt\"\n file_name_stock: \"./data/stock/stock.txt\" \n file_name_model_response: \"./data/model/model.txt\"\n```\n\n## Installation \n\n```bash\ngit clone https://github.com/chriscco/pusher-go.git\ncd pusher-go\n```\n授予部署脚本运行权限: \n```bash\nchmod +x script.sh \n```\n通过 crontab 或是其他方式将脚本加入系统的定时任务中, 如: \n```bash\ncrontab -e\n# 将下面的代码加入 crontab 的脚本文件中\n# 在洛杉矶时间晚上 7 点运行脚本\n0 19 * * * TZ=\"America/Los_Angeles\" /home/ubuntu/pusher/script.sh >> /tmp/cron_debug.log 2>&1\n```\n> 如果需要修改脚本或代码, 确保不要出现相对路径\n"}, "52f8ca82c6d5e44be84ae5465f81b666dece4eb6": {"t": 1785764051.9572237, "n": 1203, "h": "82065094811cc520", "c": "# Pusher-Go 自动化的新闻拉取工具 \n\nPusher-Go 可以定时自动拉取当日的新闻和股市数据,并通过调用大模型服务对当日的信息进行总结,并发送至用户邮箱\n\n## Configuration \n在```pusher-go/cli/config```中创建一个配置文件```config.local.yaml```, 如下: \n\n> 为了能正常发送邮件, 需要发送方开通 SMTP 功能\n```yaml\nmodel: \n api_key: \"sk-xxx\"\n model_name: \"deepseek-chat\"\n endpoint: \"https://api.deepseek.com\"\n\ng_news: \n api_key: \"xxx\"\n keywords: [\"agriculture\", \"technology\", \"Artificial Intelligence\"]\n endpoint: \"https://gnews.io/api/v4/top-headlines?\" \n categories: [\"business\", \"technology\", \"world\"]\n languages: [\"en\", \"zh\"] \n countries: [\"hk\", \"cn\", \"us\"] \n max_results: 10\n\nemail: \n to: [\"xxx@gmail.com\"]\n subject: \"Daily Report - \"\n from: \"xxx@gmail.com\" \n password: \"xxx\"\n\nfile: \n file_name_news: \"./data/news/news.txt\"\n file_name_stock: \"./data/stock/stock.txt\" \n file_name_model_response: \"./data/model/model.txt\"\n```\n\n## Installation \n\n```bash\ngit clone https://github.com/chriscco/pusher-go.git\ncd pusher-go\n```\n授予部署脚本运行权限: \n```bash\nchmod +x script.sh \n```\n通过 crontab 或是其他方式将脚本加入系统的定时任务中, 如: \n```bash\ncrontab -e\n# 将下面的代码加入 crontab 的脚本文件中\n# 在洛杉矶时间晚上 9 点运行脚本\n0 19 * * * TZ=\"America/Los_Angeles\" /home/ubuntu/pusher/script.sh >> /tmp/cron_debug.log 2>&1\n```\n> 如果需要修改脚本或代码, 确保不要出现相对路径\n"}, "5632a01f85a17efe72c39fddf452b3b83cf0ea55": {"t": 1785764055.0852826, "n": 1166, "h": "05555a5d28d65016", "c": "# Pusher-Go 自动化的新闻拉取工具 \n\nPusher-Go 可以定时自动拉取当日的新闻和股市数据,并通过调用大模型服务对当日的信息进行总结,并发送至用户邮箱\n\n## Configuration \n在```pusher-go/cli/config```中创建一个配置文件```config.local.yaml```, 如下: \n\n> 为了能正常发送邮件, 需要发送方开通 SMTP 功能\n```yaml\nmodel: \n api_key: \"sk-xxx\"\n model_name: \"deepseek-chat\"\n endpoint: \"https://api.deepseek.com\"\n\ng_news: \n api_key: \"xxx\"\n keywords: [\"agriculture\", \"technology\", \"Artificial Intelligence\"]\n endpoint: \"https://gnews.io/api/v4/top-headlines?\" \n categories: [\"business\", \"technology\", \"world\"]\n languages: [\"en\", \"zh\"] \n countries: [\"hk\", \"cn\", \"us\"] \n max_results: 10\n\nemail: \n to: [\"xxx@gmail.com\"]\n subject: \"Daily Report - \"\n from: \"xxx@gmail.com\" \n password: \"xxx\"\n\nfile: \n file_name_news: \"./data/news/news.txt\"\n file_name_stock: \"./data/stock/stock.txt\" \n file_name_model_response: \"./data/model/model.txt\"\n```\n\n## Installation \n\n```bash\ngit clone https://github.com/chriscco/pusher-go.git\ncd pusher-go\n```\n授予部署脚本运行权限: \n```bash\nchmod +x script.sh \n```\n通过 crontab 或是其他方式将脚本加入系统的定时任务中, 如: \n```bash\n# 在洛杉矶时间晚上 9 点运行脚本\n0 19 * * * TZ=\"America/Los_Angeles\" /home/ubuntu/pusher/script.sh >> /tmp/cron_debug.log 2>&1\n```\n> 如果需要修改脚本或代码, 确保不要出现相对路径\n"}}}}