Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🌐 | Updated HTTP/HTTPS/SOCKS4/SOCKS5 proxies every hour!

NotificationsYou must be signed in to change notification settings

zebbern/Proxy-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonStatusLicense

This project is for high performance and reliability, with features like proxy validation, testing, and output customization.

Proxy Tester Settings |Proxy Tester Code |Important Considerations


How To Use

Want to test proxies locally? Use the quick tester below!

Instructions:

  1. Create a file calledproxies.txt in the same directory.
  2. Paste your proxy list (e.g.,IP:Port format) into the file.
  3. At the end you get an option to save working proxies to a file for later use.
  4. Run this Python script:###ImportantThe more "Workers" u have the less accurate results you get
  • More workers = Faster but less working proxies - 10-100 workers
  • Less workers = Slower but more working proxies - 1-10 workers

Use 1-10 workers max for the optimal result

Proxy Tester Code

importrequestsfromconcurrent.futuresimportThreadPoolExecutorfromtimeimportsleepfromcoloramaimportFore,Style,init# Initialize coloramainit(autoreset=True)defcheck_proxy(args):index,total,proxy=argsproxy=proxy.strip()proxies= {'http':f'http://{proxy}','https':f'https://{proxy}',    }try:response=requests.get('http://httpbin.org/ip',proxies=proxies,timeout=5)ifresponse.status_code==200:result=f'{Fore.GREEN}[{index}/{total}] ✅{proxy}{Style.RESET_ALL}'is_valid=Trueelse:result=f'{Fore.RED}[{index}/{total}] ❌{proxy}{Style.RESET_ALL}'is_valid=Falseexceptrequests.exceptions.RequestException:result=f'{Fore.RED}[{index}/{total}] ❌{proxy}{Style.RESET_ALL}'is_valid=Falsesleep(0.5)# Delay to prevent overloading the servicereturn (result,proxyifis_validelseNone)if__name__=='__main__':withopen('proxies.txt','r')asfile:proxies_list= [line.strip()forlineinfileifline.strip()]total_proxies=len(proxies_list)valid_proxies= []# Prepare arguments for mapargs_list= [(idx,total_proxies,proxy)foridx,proxyinenumerate(proxies_list,start=1)]# Use ThreadPoolExecutor with fewer workers to control request ratewithThreadPoolExecutor(max_workers=5)asexecutor:# Use executor.map to process proxies in orderforresult,valid_proxyinexecutor.map(check_proxy,args_list):print(result)ifvalid_proxy:valid_proxies.append(valid_proxy)# After all proxies have been checked, prompt to save valid onesifvalid_proxies:save_choice=input("Do you want to save the valid proxies to a file? (y/n): ")ifsave_choice.lower()=='y':output_file=input("Enter the filename to save valid proxies (default: valid_proxies.txt): ").strip()ifnotoutput_file:output_file='valid_proxies.txt'withopen(output_file,'w')asf:forproxyinvalid_proxies:f.write(f'{proxy}\n')print(f"Valid proxies saved to{output_file}")else:print("No valid proxies found.")
  1. You can save file asproxies.txt to get the new working tested proxies into the same file u put them in

Important


Legal and Ethical Use:

  • Use the proxies responsibly and ethically.
  • Any illegal or unethical use of this tool or its proxies is solely your responsibility.
  • This is all public available proxies and has nothing to do with me this list is only for easy access to proxies.

Proxy Reliability and Security:

  • Public proxies may be unreliable and pose security risks.
  • Avoid using them for sensitive operations or data.
  • Remember that free proxies may log browsing history, so your online privacy may be compromised


[8]ページ先頭

©2009-2025 Movatter.jp