惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
D
DataBreaches.Net
雷峰网
雷峰网
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Engineering at Meta
Engineering at Meta
月光博客
月光博客
V
Visual Studio Blog
美团技术团队
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
博客园 - 【当耐特】
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东

博客园 - 隨風.NET

使用omdd下载ollama 钉钉AI机器人 安全高效跨平台的. NET 模板引擎 Fluid 使用文档 IIS反向代理 anki单词发音 excelPackage.Workbook.Worksheets[0]”引发了类型“System.Collections.Generic.KeyNotFoundException”的异常 vba替换\ red-gate激活要点 简化asp.netcore框架 windows安装nginx服务 jquery根据json自动生成表格 动态生成类并通过反射调用 excel 链接变图片 搭建prometheus监控系统 .net core部署到k8s 异步异常无法catch 虚拟机安装k8s 优化 vue 使用 webpack 打包,出现的缓存问题 及 项目部署问题 Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException 拒绝访问 / 出现了内部错误 c# – 当使用X509Certificate2加载p12/pfx文件时出现
python 调用dnspod接口修改A记录
隨風.NET · 2023-07-10 · via 博客园 - 隨風.NET
import requests

ip = requests.get('https://api.ipify.org/')
print(ip.text)


def update_ip(record_id):
    url = "https://dnsapi.cn/Record.Modify"
    data = {
        "login_token": "xxx",
        "format": "json",
        "domain": "xx.com",
        "record_id": record_id,
        "value": ip,
        "record_type": "A",
        "record_line_id": "10=1"
    }
    response = requests.post(url, data=data)
    print(response.text.encode('utf-8').decode('unicode_escape'))


# oms100
update_ip(7805156)
# oms
update_ip(378047661)