Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
/ sketchfab_dl Public archive

A small Python module for downloading models from Sketchfab.

License

Notifications You must be signed in to change notification settings

laurirasanen/sketchfab_dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sketchfab_dl

A small Python module for downloading models from Sketchfab.

Usage

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")

About

A small Python module for downloading models from Sketchfab.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages