from sketchfab_dl import set_api_token, download_model, search_results
# You can find your Sketchfab API Token at:
# https://sketchfab.com/settings/password
API_TOKEN = "xxx"
# Search parameters,
# see: https://docs.sketchfab.com/data-api/v3/index.html#/search
params = {
"type": "models",
"q": "cybertruck",
"downloadable": True,
"count": 1
}
# Get a collection of models from the search API
models = search_results(params)
if len(models) == 0:
print("No models found")
exit()
# Downloading requires authentication
set_api_token(API_TOKEN)
# Download a model with UID to a folder
download_model(models[0]["uid"], "./cybertruck")
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
A small Python module for downloading models from Sketchfab.
License
nullprop/sketchfab_dl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A small Python module for downloading models from Sketchfab.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published