MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / mark_proxy_good

Function mark_proxy_good

Scripts/Developer Base/Free Internet.py:623–633  ·  view source on GitHub ↗
(country: str, proxy: str)

Source from the content-addressed store, hash-verified

621
622
623def 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
636def fetch_proxy_pool(country: str, force_refresh: bool = False) -> List[str]:

Callers 1

proxied_fetchFunction · 0.70

Calls 2

load_proxy_stateFunction · 0.70
save_proxy_stateFunction · 0.70

Tested by

no test coverage detected