Skip to content

qubick/irjs-thingiverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

$ npm install irjs-thingiverse

CLI

$ thing search -w pumpkin

thing#:12345 pumpkin spice latte
thing#:23456 Makerbot pumpkin
thing#:65432 Pumpkin holloween 
...

pumpkin spice latte.zip saved
Makerbot Pumkin.zip saved
Pumpkin holloween.zip saved
...


$ thing search -t robot

thing#:12345 Hanbot
thing#:98766 Pumpkinbot
...


$ thing search -u mowi

thing#:23494 body lotion
thing#:23847 soap
...


$ thing get -i 123456

123456.stl saved


$ thing get -r 123-456

123 saved
124 saved
page 125 does not exist
126 saved
thing 127 is not 3D file (not .stl format)
...

API

var thing = require('./irjs-thingiverse')

thing.searchByWord(term)
thing.searchByTag(tag1, tag2, ...)
thing.searchByUser(username)

thing.getFileiById(fileId)
thing.getFilesFromTo(startId, endId)


//thing.createThing(thingName)
//thing.addFilestoThing('.stl filename', thingName)

Test

$ mocha

Examples

Download multiple stl files by the model ID, verified 3D models by the file format

$ node examples/example-getFilesByRange.js

Search stl files by search term

$ node examples/example-searchBySearchTerm.js

Search stl files by the creator (User Name), verified 3D models by the file format

$ node examples/example-searchByUserName.js

Trouble Shooting

If error message says Module does not self-register or js-bson: Failed to load c++ bson extension, using pure JS version

Clean node_modules and reinstall dependencies

rm -rf node_modules
npm cache clean
npm install

About

thingiverse api for search, upload, get 3D models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published