# ReportIP **Repository Path**: hpch/ReportIP ## Basic Information - **Project Name**: ReportIP - **Description**: 获取本机ip动态解析域名到阿里 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-11-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ReportIP 获取本机ip动态解析域名到阿里,计划任务定时执行[TimerCheckIP.py](https://gitee.com/hpch/ReportIP/blob/master/TimerCheckIP.py)即可实现动态上报 1、在[myConfig.py](https://gitee.com/hpch/ReportIP/blob/master/myConfig.py)中配置自己的信息 2、获取本机IP的代码主要在[TimerCheckIP.py](https://gitee.com/hpch/ReportIP/blob/master/TimerCheckIP.py)中,目前只写了linux下ipv6的获取方法,其它方法自己扩充 3、阿里云操作API参数的拼接在[AliAPI.py](https://gitee.com/hpch/ReportIP/blob/master/AliAPI.py)中,其它API自己扩充 4、参数签名及代理请求同意放在[BaseFunc.py](https://gitee.com/hpch/ReportIP/blob/master/BaseFunc.py)中,阿里云操作的所有请求应当都由本文件发出,通过__getReturn(key,myurl)发出,其它操作请求参照本文件中的域名解析相关的请求接口DNS_Return(key) 5、redis的远程操作在[BaseRedis.py](https://gitee.com/hpch/ReportIP/blob/master/BaseRedis.py)中 6、代理设置在[ProxyBY.py](https://gitee.com/hpch/ReportIP/blob/master/ProxyBY.py)中低版本requests不支持socks5代理 7、阿里云产品操作高级接口在[myFunc.py](https://gitee.com/hpch/ReportIP/blob/master/myFunc.py)中