Difference between revisions of "Shell script to download all files for a thing (Q51984)"
Jump to navigation
Jump to search
(Reconciliation Edit) |
(Added [en] label: Shell script to download all files for a thing) |
||
label / en | label / en | ||
+ | Shell script to download all files for a thing |
Latest revision as of 19:38, 25 February 2022
No description defined
Language | Label | Description | Also known as |
---|---|---|---|
English |
Shell script to download all files for a thing
|
No description defined
|
Statements
www.thingiverse.com
0 references
auto
0 references
1.0.0
0 references
https://spdx.org/licenses/CC-BY-SA-4.0
0 references
thingiverse.com
0 references
I was getting tired of forgetting to download files from things. I also like to always have the original files in git so that if I move or scale things in replicatorg, I can always go back to the originals if I want. And last, I like to have the directory names with the original thing number embedded, so I can easily go back to the thing page for reference. To solve all these problems, I wrote a small, very hackish bash script. You tell this script the Thing #, and it will take care of the rest. First, it finds the name of the Thing from the title of the thing page. It creates a directory by that name, initializes a new git repository, and downloads all files attached to the thing. This script works on the several dozen things I've downloaded so far. TODO: - The way I parse out the download numbers is somewhat hacky. This should use something like the thing#/files URL and some actual DOM parsing. - Somebody should pester the Thingiverse maintainers to get an actual API to get the URLs of all the downloads - It would also be nice if thingiverse were more github-like for file storage
0 references
boyandhisbot
0 references
en
0 references