Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nullprop/sketchfab_dl
A small Python module for downloading models from Sketchfab.
https://github.com/nullprop/sketchfab_dl
python sketchfab
Last synced: about 1 month ago
JSON representation
A small Python module for downloading models from Sketchfab.
- Host: GitHub
- URL: https://github.com/nullprop/sketchfab_dl
- Owner: nullprop
- License: mit
- Created: 2019-12-06T14:52:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-11T15:27:02.000Z (about 1 month ago)
- Last Synced: 2025-01-11T15:40:06.857Z (about 1 month ago)
- Topics: python, sketchfab
- Language: Python
- Size: 3.91 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sketchfab_dl
### A small Python module for downloading models from Sketchfab.## Usage
```python
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")
```