sd / update_browserforge_data.py
dakl45646's picture
Upload 118 files
24926a5 verified
Raw History Blame Contribute Delete
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)