{"id":19497702,"url":"https://github.com/oreomeow/freenom-py","last_synced_at":"2025-05-12T04:30:42.653Z","repository":{"id":47216249,"uuid":"398609701","full_name":"Oreomeow/freenom-py","owner":"Oreomeow","description":"Freenom 域名自动续约 python 项目","archived":false,"fork":false,"pushed_at":"2022-10-16T14:41:46.000Z","size":18,"stargazers_count":133,"open_issues_count":2,"forks_count":66,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T00:11:57.619Z","etag":null,"topics":["freenom","python"],"latest_commit_sha":null,"homepage":"https://oreos.ml/script/2021-09-15-Freenom-py.html","language":"HTML","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/Oreomeow.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}},"created_at":"2021-08-21T16:47:14.000Z","updated_at":"2025-03-21T08:22:11.000Z","dependencies_parsed_at":"2022-08-12T13:20:15.840Z","dependency_job_id":null,"html_url":"https://github.com/Oreomeow/freenom-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oreomeow%2Ffreenom-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oreomeow%2Ffreenom-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oreomeow%2Ffreenom-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oreomeow%2Ffreenom-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oreomeow","download_url":"https://codeload.github.com/Oreomeow/freenom-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253675083,"owners_count":21945893,"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":["freenom","python"],"created_at":"2024-11-10T21:47:43.288Z","updated_at":"2025-05-12T04:30:42.372Z","avatar_url":"https://github.com/Oreomeow.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003e𝘧𝘳𝘦𝘦𝘯𝘰𝘮-𝘱𝘺\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/Oreomeow/freenom-py/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/Oreomeow/freenom-py?color=9cf\u0026logo=Riseup\u0026logoColor=9cf\u0026style=for-the-badge\" alt=\"GitHub stars\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Oreomeow/freenom-py/network\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/Oreomeow/freenom-py?color=9cf\u0026style=for-the-badge\" alt=\"GitHub forks\"\u003e\u003c/a\u003e\n\u003ca href=\"https://t.me/joinchat/muGNhnaZglQ0N2Q1\"\u003e\u003cimg src=\"https://img.shields.io/badge/talk-Telegram-9cf?logo=Telegram\u0026style=for-the-badge\" alt=\"Telegram\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Oreomeow/freenom-py/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/Oreomeow/freenom-py?color=yellow\u0026style=for-the-badge\" alt=\"GitHub issues\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Oreomeow/freenom-py/commits\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/Oreomeow/freenom-py?color=orange\u0026logo=GitHub\u0026style=for-the-badge\" alt=\"GitHub last commit\"\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n  \n## 项目描述 🔑\n\nFreenom 自动续期域名的脚本\n\n## 项目部署 🥳\n\nPython 运行环境\n\n* Windows、Linux、青龙、elecV2P 等\n\n## 使用说明 🕹\n\n\u003ch3 align=\"center\"\u003e🌏 通用版\u003c/h3\u003e\n\nPC、VPS 等可直接运行, 无通知变量\n\n```sh\nwget https://raw.githubusercontent.com/Oreomeow/freenom-py/main/FNplus.py\n```\n\n```sh\npython3 FNplus.py -u USERNAME -p PASSWORD\n```\n\n`USERNAME` : Freenom 用户名  \n`PASSWORD` : Freenom 密码\n\n\u003ch3 align=\"center\"\u003e🐉 青龙邮件版 📧\u003c/h3\u003e\n\n1. 修改配置文件\n\n    ```sh\n\n    ## ql repo命令拉取脚本时需要拉取的文件后缀，直接写文件后缀名即可\n\n    RepoFileExtensions=\"js py ts html\"\n    ```\n\n2. 添加定时拉取任务并运行\n\n    ```sh\n    ql repo https://github.com/Oreomeow/freenom-py.git \"FN_extend.py\" \"\" \"utils|templates\"\n    ```\n\n3. 安装依赖\n\n    ```sh\n    docker exec -it qinglong bash # 进入容器内\n    ```\n\n    ```sh\n    cd /ql/scripts\n    wget https://raw.githubusercontent.com/Oreomeow/freenom-py/main/requirements.txt -O requirements.txt\n    pip3 install -r requirements.txt\n    ```\n\n4. 添加环境变量 [示例](https://github.com/Oreomeow/freenom-py/issues/1#issuecomment-903344952)\n\n   * 可看[脚本注释](https://raw.githubusercontent.com/Oreomeow/freenom-py/main/FN_extend.py)\n   * 参考[下方表格](https://github.com/Oreomeow/freenom-py#%E9%82%AE%E4%BB%B6%E7%89%88-)\n\n5. 运行一次 `FN_extend.py` 测试\n\n\u003ch3 align=\"center\"\u003e🪁 elecV2P 邮件版 📧\u003c/h3\u003e\n\nTASK -\u003e 添加单个任务 -\u003e 修改名称、时间、任务 -\u003e JSMANAGE -\u003e store/cookie 常量储存管理填写[环境变量](https://github.com/Oreomeow/freenom-py#%E9%82%AE%E4%BB%B6%E7%89%88-)\n\n名称: Freenom 续期\n\n时间: cron 定时 `25 7 */10 * *`\n\n任务:\n\n```url\nhttps://raw.githubusercontent.com/Oreomeow/freenom-py/main/FN_extend.js\n```\n\n\u003ch3 align=\"center\"\u003e🐉 青龙消息版 📱\u003c/h3\u003e\n\n1. 面板添加定时任务，定时随意，运行\n\n    ```sh\n    ql raw https://raw.githubusercontent.com/Oreomeow/freenom-py/main/FNplus.py\n    ```\n\n2. 添加[环境变量](https://github.com/Oreomeow/freenom-py#%E6%B6%88%E6%81%AF%E7%89%88-) [示例](https://github.com/Oreomeow/freenom-py/issues/1#issuecomment-903344952)\n\n3. 运行一次 `FNplus.py` 测试\n\n\u003ch3 align=\"center\"\u003e🪁 elecV2P 消息版 📱\u003c/h3\u003e\n\nTASK -\u003e 添加单个任务 -\u003e 修改名称、时间、任务 -\u003e JSMANAGE -\u003e store/cookie 常量储存管理填写[环境变量](https://github.com/Oreomeow/freenom-py#%E6%B6%88%E6%81%AF%E7%89%88-)\n\n名称: Freenom 续期\n\n时间: cron 定时 `25 7 */10 * *`\n\n任务:\n\n```url\nhttps://raw.githubusercontent.com/Oreomeow/freenom-py/main/FNplus.js\n```\n\n## 环境变量 🍒\n\n### 邮件版 📧\n\n| 变量 / key   | 描述                     | 示例 / value                        |\n| ------------ | ------------------------ | ----------------------------------- |\n| FN_ID        | Freenom 用户名           | 1234567890@gmail.com                |\n| FN_PW        | Freenom 密码             | 12345678                            |\n| MAIL_USER    | 发件人邮箱用户名         | address@vip.qq.com 或 123456@qq.com |\n| MAIL_ADDRESS | 发件人邮箱地址           | address@vip.qq.com 或 123456@qq.com |\n| MAIL_PW      | 发件人邮箱授权码         | xxxxxxxxxxxxxxxx 看下方链接         |\n| MAIL_HOST    | 发件人邮箱服务器         | smtp.qq.com 不填默认为这个          |\n| MAIL_PORT    | 邮箱服务器端口           | 465 不填默认为这个                  |\n| MAIL_TO      | 收件人邮箱可与发件人相同 | address@vip.qq.com 或 123456@qq.com |\n\n* 填写总参考\n\n\u003e [如何设置POP3/SMTP的SSL加密方式?](https://service.mail.qq.com/cgi-bin/help?subtype=1\u0026\u0026id=28\u0026\u0026no=369)\n\n### 消息版 📱\n\n| 变量 / key    | 描述                           | 参考 / value                                                                                                                                                                                                                                 |\n| ------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| FN_ID         | Freenom 用户名, 多账号空格隔开 | 1234567890@gmail.com  9876543210@enayu.com                                                                                                                                                                                                   |\n| FN_PW         | Freenom 密码, 多账号空格隔开   | 12345678 87654321                                                                                                                                                                                                                            |\n| BARK          | bark 设备码                    | BARK 推送[使用](https://github.com/Sitoi/dailycheckin/issues/29), 填写 URL 即可, 例如: `https://api.day.app/DxHcxxxxxRxxxxxxcm/`                                                                                                             |\n| PUSH_KEY      | Server 酱                      | server 酱推送[官方文档](https://sc.ftqq.com/3.version), 填写 `SCKEY` 代码即可                                                                                                                                                                |\n| TG_BOT_TOKEN  | tg 机器人                      | 申请 [@BotFather](https://t.me/BotFather) 的 Token, 如 `10xxx4:AAFcqxxxxgER5uw`                                                                                                                                                              |\n| TG_USER_ID    | tg 机器人                      | 给 [@getidsbot](https://t.me/getidsbot) 发送 /start 获取到的纯数字 ID, 如 `1434078534`                                                                                                                                                       |\n| TG_PROXY_IP   | * tg 机器人代理 IP 地址        | 代理类型为 http, 比如您代理是 `http://127.0.0.1:1080` , 则填写 `127.0.0.1` , 有密码例子: `username:password@127.0.0.1`                                                                                                                       |\n| TG_PROXY_PORT | * tg 机器人代理端口            | 代理端口号, 代理类型为 http, 比如您代理是 `http://127.0.0.1:1080` , 则填写 `1080`                                                                                                                                                            |\n| DD_BOT_TOKEN  | 钉钉机器人                     | 钉钉推送[官方文档](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq), 只需 `https://oapi.dingtalk.com/robot/send?access_token=XXX` 等于符号后面的 `XXX`                                                                                  |\n| DD_BOT_SECRET | 钉钉机器人                     | 钉钉推送[官方文档](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq)密钥, 机器人安全设置页面, 加签一栏下面显示的 `SEC` 开头的字符串, 注: 填写了 `DD_BOT_TOKEN` 和 `DD_BOT_SECRET` , 钉钉机器人安全设置只需勾选加签即可, 其他选项不要勾选 |\n| QYWX_AM       | 企业微信应用                   | [参考文档](http://note.youdao.com/s/HMiudGkb), 依次填入 corpid, corpsecret, touser(注: 多个成员ID使用 \\| 隔开), agentid, media_id(选填, 不填默认文本消息类型)                                                                                |\n\n*\\* 表示选填*\n\n* 调用模块\n\n\u003e [notify.py](https://raw.githubusercontent.com/whyour/qinglong/master/sample/notify.py)\n\n## 查看通知 📮\n\n不出意外会收到一封关于域名续期的邮件或者 tg 等通知消息\n\n## 写在最后 🔚\n\n核心代码见 `utils/freenom.py`\n\n此项目核心接口参考 [Freenom-PHP](https://github.com/luolongfei/freenom)\n\n**感谢不限于以下开发者**\n\n[@𝘴𝘩𝘶𝘢𝘪93](https://github.com/shuai93)\n\n[@𝘭𝘶𝘰𝘭𝘰𝘯𝘨𝘧𝘦𝘪](https://github.com/luolongfei)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foreomeow%2Ffreenom-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foreomeow%2Ffreenom-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foreomeow%2Ffreenom-py/lists"}