{"id":27969833,"url":"https://github.com/cmliu/gcoreip2cfddns","last_synced_at":"2025-05-07T21:54:51.471Z","repository":{"id":212494874,"uuid":"731606669","full_name":"cmliu/GcoreIP2CFDDNS","owner":"cmliu","description":"自动CloudflareSpeedTest后将优选GcoreIPDDNS更新至托管Cloudflare域名","archived":false,"fork":false,"pushed_at":"2023-12-18T11:38:32.000Z","size":32,"stargazers_count":18,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T21:54:47.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/cmliu.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}},"created_at":"2023-12-14T13:09:20.000Z","updated_at":"2025-04-12T16:30:12.000Z","dependencies_parsed_at":"2023-12-18T12:48:34.569Z","dependency_job_id":null,"html_url":"https://github.com/cmliu/GcoreIP2CFDDNS","commit_stats":null,"previous_names":["cmliu/gcoreip2cfddns"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FGcoreIP2CFDDNS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FGcoreIP2CFDDNS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FGcoreIP2CFDDNS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FGcoreIP2CFDDNS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmliu","download_url":"https://codeload.github.com/cmliu/GcoreIP2CFDDNS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961843,"owners_count":21832193,"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-05-07T21:54:50.730Z","updated_at":"2025-05-07T21:54:51.455Z","avatar_url":"https://github.com/cmliu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmliu/GcoreIP2CFDDNS\n这是一个用 CloudflareSpeedTest 自动测速GcoreIP脚本，能够测试并更新到 Cloudflare DNS 记录。\n\n## 用法\n在运行脚本之前，请确保你已经获取了CloudFlare账户邮箱(auth_email)和API密钥(auth_key)。\n\n修改脚本中的配置参数，包括CloudFlare账户邮箱、API密钥、域名等信息。\n\n### 下载脚本：\n``` bash\nwget -N -P GcoreIP2CFDDNS https://mirror.ghproxy.com/https://raw.githubusercontent.com/cmliu/GcoreIP2CFDDNS/main/speed.sh \u0026\u0026 cd GcoreIP2CFDDNS \u0026\u0026 chmod +x speed.sh \n```\n### 运行脚本：\n``` bash\n./speed.sh [二级域名] [更新IP数量] [主域名] [CloudFlare邮箱] [CloudFlare API密钥]\n```\n### 例如：给gcore.xxxx.com更新4条IP\n``` bash\n./speed.sh gcore 4 xxxx.com xxxx@gmail.com xxxxxxxxxxxxxxx\n```\n\n### 参数说明\n二级域名：例如 gcore、cdn、yx 等。\n\n主域名：你的 Cloudflare 主域名。\n\n[CloudFlare邮箱]（可选）：Cloudflare账户邮箱，如果不提供，则使用脚本中的默认邮箱。\n\n[CloudFlare API密钥]（可选）：Cloudflare账户API密钥，如果不提供，则使用脚本中的默认API密钥。\n\n## 推送通知\n\n脚本支持Telegram推送通知，你可以配置 telegramBotUserId 和 telegramBotToken，并选择是否使用官方Telegram API或自定义API。\n\n``` bash\ntelegramBotUserId=\"\"   # Telegram用户ID\ntelegramBotToken=\"6599852032:AAHhetLKhXfAIjeXgCHpish1DK_NHo3BCrk\"   # Telegram机器人Token 默认https://t.me/ACFST_DDNS_bot\ntelegramBotAPI=\"api.telegram.org\"     # Telegram推送API，默认为官方API\n```\n\n# 感谢\n [xiaodao2026](https://github.com/xiaodao2026/speed)、[MaxMind](https://www.maxmind.com/)、[P3TERX](https://github.com/P3TERX/GeoLite.mmdb)、[XIU2](https://github.com/XIU2/CloudflareSpeedTest)\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fgcoreip2cfddns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmliu%2Fgcoreip2cfddns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fgcoreip2cfddns/lists"}