AIstudioProxyAPI / scripts /update_browserforge_data.py
peijun1's picture
Deploy AI Studio Proxy API to Hugging Face Spaces
a5784e9
Raw
History Blame Contribute Delete
630 Bytes
from browserforge.download import REMOTE_PATHS, Download, Remove
# 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)