yield ':'.join([ip, port])
urls = [BASE_URL.format(page=page) for page in range(1, MAX_PAGE + 1)]
python
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']