proxy_pool.py 199 B

123456789
  1. import random
  2. from config.settings import PROXIES
  3. def get_random_proxy() -> str:
  4. if not PROXIES:
  5. return None
  6. """Get random proxy from proxy pool"""
  7. return random.choice(PROXIES)