Fork me on GitHub

自动添加芝麻代理白名单的方法

import subprocess as sb
import requests

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

 

posted @ 2019-08-22 20:43  猿起缘灭  阅读(740)  评论(0编辑  收藏  举报