{"id":30039685,"url":"https://github.com/txm983/fcircle","last_synced_at":"2025-08-20T22:42:45.097Z","repository":{"id":304795310,"uuid":"1019973201","full_name":"TXM983/Fcircle","owner":"TXM983","description":"一个基于go开发的爬取友链朋友圈的项目","archived":false,"fork":false,"pushed_at":"2025-08-06T02:01:47.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-06T04:06:39.295Z","etag":null,"topics":["go","rss"],"latest_commit_sha":null,"homepage":"","language":"Go","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/TXM983.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,"zenodo":null}},"created_at":"2025-07-15T06:41:53.000Z","updated_at":"2025-08-06T02:20:36.000Z","dependencies_parsed_at":"2025-07-15T17:39:00.443Z","dependency_job_id":"85a2c127-fae3-4b55-8eb0-6e1a26e018e7","html_url":"https://github.com/TXM983/Fcircle","commit_stats":null,"previous_names":["txm983/fcircle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TXM983/Fcircle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TXM983%2FFcircle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TXM983%2FFcircle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TXM983%2FFcircle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TXM983%2FFcircle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TXM983","download_url":"https://codeload.github.com/TXM983/Fcircle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TXM983%2FFcircle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269185784,"owners_count":24374633,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","rss"],"created_at":"2025-08-07T01:49:19.088Z","updated_at":"2025-08-07T01:49:22.766Z","avatar_url":"https://github.com/TXM983.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fcircle - 友链聚合文章抓取工具\n\n`Fcircle` 是一个基于 Go 编写的轻量 RSS 聚合爬虫工具，用于定时抓取你指定的友链 RSS 信息，生成统一的 JSON 文件供前端展示使用。\n\n## ✨ 功能简介\n\n- 定时从远程友链配置文件中读取 RSS 地址\n- 支持并发抓取每个友链的最新文章\n- 自动生成 `feed_result.json` 文件\n- 提供 HTTP 接口手动触发抓取或读取结果\n- 可通过 Docker Compose 部署，支持环境变量灵活配置\n\n---\n\n## 🚀 快速启动\n\n### 1. 编写 `docker-compose.yml`\n\n```yaml\nversion: '3.8'\n\nservices:\n  fcircle:\n    image: txm123/fcircle:latest\n    container_name: fcircle\n    restart: always\n    ports:\n      - \"8521:8080\"\n    volumes:\n      - ./logs:/app/output\n    environment:\n      - GIN_MODE=release                    # 设定 Gin 运行环境\n      - SERVER_PORT=8080                     # 对应 容器启动端口\n      - SECRET_KEY=#####                     # /fetch接口手动请求密钥\n      - CRON_EXPR=0 0 3 * * *           # 设置定时调用的间隔时间\n      - CONFIG_URL=https://cdn.aimiliy.top/npm/json/RSS.json  # 配置文件url\n      - OUTPUT_FILE=output/feed_result.json   # 朋友圈json文件路径\n      - LOG_FILE=output/crawl.log   # 日志文件路径\n\n```\n\n### 2. 启动容器\n```shell\ndocker-compose up -d\n```\n容器启动后，将会立即执行一次抓取任务，并每隔指定时间自动运行。\n\n\n## ⚙️ 配置说明\n\n该项目默认不再使用本地配置文件，而是通过环境变量进行控制，以下为主要环境变量说明：\n\n| 环境变量          | 说明             | 示例值                             |\n|---------------|----------------|---------------------------------|\n| `SERVER_PORT` | HTTP 服务监听端口    | `8080`                          |\n| `SECRET_KEY`  | fetch接口请求密钥    | `#####`                         |\n| `CRON_EXPR`   | cron表达式        | `0 0 3 * * *`                   |\n| `CONFIG_URL`  | 远程 RSS 配置文件地址  | `https://xxx.com/path/RSS.json` |\n| `OUTPUT_FILE` | 抓取结果保存路径（容器内）  | `output/feed_result.json`       |\n| `LOG_FILE`    | 日志输出路径（容器内）    | `output/crawl.log`              |\n\n\n## 📦 输出文件说明\n\n默认抓取完成后会生成如下 JSON 文件：\n```yaml\noutput/\n├── crawl.log           # 抓取日志\n└── feed_result.json    # 抓取到的文章信息\n```\n\n在配置完代理之后，可以通过`/feed`来获取`feed_result.json`\n例如：https://feed.miraii.cn/feed\n\n可以通过`/fetch?key=xxxxxx`来重新解析RSS，其中的key为docker环境变量中设置的SECRET_KEY，以上接口都根据IP做了限流处理，请不要滥用哦！具体限流速率可以到源代码中查看。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxm983%2Ffcircle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxm983%2Ffcircle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxm983%2Ffcircle/lists"}