22 lines
475 B
Python
22 lines
475 B
Python
|
"""Harvester: Proxy collection tool
|
||
|
Inspired by https://github.com/acidvegas/proxytools
|
||
|
"""
|
||
|
from harvester.proxy import fetch_list
|
||
|
|
||
|
|
||
|
URLS = [
|
||
|
'https://api.openproxylist.xyz/socks4.txt',
|
||
|
'https://api.openproxylist.xyz/socks5.txt',
|
||
|
'https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4',
|
||
|
]
|
||
|
|
||
|
def main():
|
||
|
"""Main entry point."""
|
||
|
for url in URLS:
|
||
|
proxies = fetch_list(url)
|
||
|
print(proxies)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|