Command-line downloader for downloadable Sketchfab models. Supports downloading individual models or entire users.
- Ruby
- Bundler
- A working install of the requirements for the
headless
gem (Xvfb/XQuartz...) - ChromeDriver (
brew install chromedriver
on OS X)
Add your Sketchfab login/password to your ~/.netrc
(which should be readable/writable only by the owner, which you can accomplish with chmod 600 ~/.netrc
) like so:
machine sketchfab.com
login [email protected]
password examplepassword
Then:
bundle exec ./sketchfab-dl.rb sketchfaburl [sketchfaburl2 ...]
- I get the error:
Display socket is taken but lock file is missing - check the Headless troubleshooting guide
See this issue/comment on the headless
gem which suggests running:
mkdir /tmp/.X11-unix
sudo chmod 1777 /tmp/.X11-unix
sudo chown root /tmp/.X11-unix/