무료 proxy
-
파이썬 - 무료 프록시 걸러내기 정상 찾기프로그래밍/Python 파이썬 2023. 3. 1.
무료 프록시 사이트에서 json 형태로 무료 프록시 주소를 받아서 실제 서버 통신을 해보고 작동하는 프록시인지 체크하는 로직이다. def proxy(): test_url = 'https://api.ipify.org' free_proxy = 'https://proxylist.geonode.com/api/proxy-list?limit=500&page=1&sort_by=upTime&sort_type=desc' proxy_list = [] # get proxy list from free site site_json = requests.get(free_proxy).json()['data'] # ip port mapping for i in site_json: # search socket if 'socks' in i[..