美文网首页
Python代码实例

Python代码实例

作者: xupython | 来源:发表于2018-05-21 13:02 被阅读0次

python代理ip

网站:http://free-ss.tk/

author:xgb

time:2018-05-21

需要引用的模块

import requests

import json

import pymysql

代码:

html=requests.get('http://free-ss.tk/ss.json?_=1526868943442').text

js_one=json.loads(html)

for i in js_one['data']:

     item={}

     item['V/T/U/M']=i[0]

    item['address']=i[1]  #ip

    item['port']=i[2]  #port

   item['method']=i[3]

   item['password']=i[4]

    item['time']=i[5]

    item['city']=i[6]

    print(item)

相关文章

网友评论

      本文标题:Python代码实例

      本文链接:https://www.haomeiwen.com/subject/usqfjftx.html