limoxi / aliyun_ddns

基于阿里云解析的动态域名解析
MIT License
108 stars 51 forks source link

requests.get(REQUEST_URL, get_params) 这句遇到错误 #1

Closed xuminzhong closed 7 years ago

xuminzhong commented 7 years ago

requests.get(REQUEST_URL, get_params) 这句遇到:

Traceback (most recent call last):
  File "aliyun_ddns.py", line 123, in 
    update_yun(ip)
  File "aliyun_ddns.py", line 76, in update_yun
    get_resp = requests.get(REQUEST_URL, get_params)
TypeError: get() takes exactly 1 argument (2 given)

REQUEST_URL: https://alidns.aliyuncs.com/ get_params: {'SignatureVersion': '1.0', 'DomainName': u'xxx', 'Timestamp': 'xxx', 'Format': 'json', 'SignatureMethod': 'HMAC-SHA1', 'AccessKeyId': u'xxx', 'TypeKeyWord': 'A', 'Version': '2015-01-09', 'Signature': 'xxx', 'Action': 'DescribeDomainRecords', 'SignatureNonce': UUID('xxx')}

limoxi commented 7 years ago

@xuminzhong 更新requests模块