https://ip.jiangxianli.com/api/proxy_ips
import requests from pprint import pprint proxy_ips = [] url = 'https://ip.jiangxianli.com/api/proxy_ips' res = requests.get(url).json() for i in res['data']['data']: http = i['protocol'] ip = i['ip'] port = i['port'] proxy_ip = '%s://%s:%s' % (http, ip, port) proxy_ips.append(proxy_ip) pprint(proxy_ips)