Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store JSON for things, collections, and user designs #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

unknownlamer
Copy link

Greetings,

I am looking at offline archiving my collections and designs from thingiverse, juuust in case, given its current state. To this end, I've started adding basic support for dumping the raw JSON details for things, collections, and the list of user designs. My hope is that sometime down the line this can be used by an importer to mediagoblin or something similar, or otherwise post-processed.

For now, it just unconditionally dumps the JSON (and doesn't do any checks for API errors to make sure it's actually returning the requested information), and dumps to "thing:$id.json", "collection:$id.json", or "designs:$username.json" mirroring how thingiverse labels them.

If this looks OK as a first pass, I was going to add some error checking code in the Grouping. If this looks OK generally, do you think it should be controlled with an argument? something like "--dump-json={all,designs,thing,collection}" maybe.

Clinton Ebadi added 3 commits February 20, 2021 23:22
@JaneSmith
Copy link

This is a great idea. I'm not part of this project, but I've tried your changes in my own local copy and it works great. Thanks.

@cwoac
Copy link
Owner

cwoac commented Oct 31, 2021

Media goblin hosting is an interesting idea indeed. I'll take a look at this, thanks.

@cwoac cwoac self-requested a review October 31, 2021 13:26
@cwoac cwoac added the enhancement New feature or request label Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants