• yield ':'.join([ip, port])
  • urls = [BASE_URL.format(page=page) for page in range(1, MAX_PAGE + 1)]
BASE_URL = 'https://proxylist.geonode.com/api/proxy-list?limit=500&page={page}&sort_by=lastChecked&sort_type=desc'

MAX_PAGE = 18

urls = [BASE_URL.format(page=page) for page in range(1, MAX_PAGE + 1)]
  • json转对象 
    result = json.loads(html)
    #对象中获取属性值
    proxy_list = result['data']

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部