(country: str, proxy: str)
| 621 | |
| 622 | |
| 623 | def mark_proxy_good(country: str, proxy: str) -> None: |
| 624 | state = load_proxy_state() |
| 625 | key = country.upper() |
| 626 | bucket = state.get(key, {}) |
| 627 | if proxy in bucket: |
| 628 | del bucket[proxy] |
| 629 | if bucket: |
| 630 | state[key] = bucket |
| 631 | elif key in state: |
| 632 | del state[key] |
| 633 | save_proxy_state(state) |
| 634 | |
| 635 | |
| 636 | def fetch_proxy_pool(country: str, force_refresh: bool = False) -> List[str]: |
no test coverage detected