A small Python module for downloading models from Sketchfab.
PythonMIT
sketchfab_dl
A small Python module for downloading models from Sketchfab.
Usage
fromsketchfab_dlimportset_api_token, download_model, search_results# You can find your Sketchfab API Token at:# https://sketchfab.com/settings/passwordAPI_TOKEN="xxx"# Search parameters,# see: https://docs.sketchfab.com/data-api/v3/index.html#/searchparams= {
"type": "models",
"q": "cybertruck",
"downloadable": True,
"count": 1
}
# Get a collection of models from the search APImodels=search_results(params)
iflen(models) ==0:
print("No models found")
exit()
# Downloading requires authenticationset_api_token(API_TOKEN)
# Download a model with UID to a folderdownload_model(models[0]["uid"], "./cybertruck")