import subprocess as sb import requests if __name__ == '__main__':
#获取服务器的出口ip ip = sb.getoutput('curl ifconfig.me').split(' ')[-1]
#调用芝麻添加白名单的链接,添加即可 response = requests.get('curl web.http.cnapi.cc/index/index/save_white?neek=6ppkey=fae10aa1d846f09a2ea&white='+ip)