Download update_browserforge_data.py from dakl45646/sd: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/dakl45646/sd/resolve/main/update_browserforge_data.py
- Command line
-
hf download hf://spaces/dakl45646/sd/update_browserforge_data.py
-
curl -L -o update_browserforge_data.py https://huggingface.co/spaces/dakl45646/sd/resolve/main/update_browserforge_data.py
630 Bytes
| from browserforge.download import Download, Remove, REMOTE_PATHS | |
| # Modify REMOTE_PATHS directly | |
| REMOTE_PATHS["headers"] = ( | |
| "https://raw.githubusercontent.com/apify/fingerprint-suite/667526247a519ec6fe7d99e640c45fbe403fb611/packages/header-generator/src/data_files" | |
| ) | |
| REMOTE_PATHS["fingerprints"] = ( | |
| "https://raw.githubusercontent.com/apify/fingerprint-suite/667526247a519ec6fe7d99e640c45fbe403fb611/packages/fingerprint-generator/src/data_files" | |
| ) | |
| # Removes previously downloaded browserforge files if they exist | |
| Remove() | |
| # Downloads updated fingerprint + header definitions | |
| Download(headers=True, fingerprints=True) | |