harvester/main.py

22 lines
469 B
Python
Raw Normal View History

2023-11-06 19:41:05 +00:00
"""Harvester: Proxy collection tool
Inspired by https://github.com/acidvegas/proxytools
"""
2023-11-06 21:29:44 +00:00
from harvester.proxy import fetch_all
2023-11-06 19:41:05 +00:00
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."""
2023-11-06 21:29:44 +00:00
proxies = fetch_all(URLS)
print(proxies)
print(len(proxies))
2023-11-06 19:41:05 +00:00
if __name__ == '__main__':
main()