proxy_pool.py 319 B

1234567891011121314
  1. import random
  2. def get_random_proxy() -> str:
  3. """Get random proxy from proxy pool"""
  4. proxies = [
  5. 'http://127.0.0.1:9360',
  6. 'http://127.0.0.1:9362',
  7. 'http://127.0.0.1:9364',
  8. 'http://127.0.0.1:9366',
  9. 'http://127.0.0.1:9368',
  10. 'http://127.0.0.1:1881',
  11. ]
  12. return random.choice(proxies)