Spaces:
Running
Running
Download scripts/01_discover_wallets.py from sharpflowapp/web: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/spaces/sharpflowapp/web/resolve/bd12ed11a08db01b0ffab86e7da1075eff36b166/scripts/01_discover_wallets.py
- Command line
-
hf download hf://spaces/sharpflowapp/web@bd12ed11a08db01b0ffab86e7da1075eff36b166/scripts/01_discover_wallets.py
-
curl -L -o 01_discover_wallets.py https://huggingface.co/spaces/sharpflowapp/web/resolve/bd12ed11a08db01b0ffab86e7da1075eff36b166/scripts/01_discover_wallets.py
796 Bytes
| #!/usr/bin/env python3 | |
| """Step 1 — build a list of candidate wallets to analyze. | |
| python scripts/01_discover_wallets.py | |
| Writes data/candidates.json (a list of 0x addresses). | |
| """ | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parents[1])) | |
| from pmct.client import PolymarketClient | |
| from pmct.discover import discover | |
| from pmct.util import load_config, cache_path, write_json | |
| def main(): | |
| cfg = load_config() | |
| client = PolymarketClient(sleep_sec=cfg["analyze"]["request_sleep_sec"]) | |
| print("Discovering candidate wallets...") | |
| wallets = discover(client, cfg["discover"]) | |
| out = cache_path(cfg, "candidates.json") | |
| write_json(out, wallets) | |
| print(f"Saved {len(wallets)} candidates -> {out}") | |
| if __name__ == "__main__": | |
| main() | |