Glitch project bulk-downloading

Propose Downloading Archived Projects Feature

I’m happy to share that a fork of Pomax’s script now lets you download archived (inactive) Glitch projects. If you’d like to keep your archived projects, this update makes it easy to retrieve and back up all your work effortlessly.

:glowing_star: Key Improvement:

  • Archived Project Download (--archived flag)
    • Allows you to download archived Glitch projects
    • Helps preserve your work even after removal

:pushpin: How to Use:

To download active projects without any optional flags, simply run:

python download.py <your_user_id> <your_persistent_token>

To download archived projects, run the script with the --archived flag:

python download.py <your_user_id> <your_persistent_token> --archived

Link removed

Cheers!

Updated
This official script now also supports downloading archived projects. Please refer to @Pomax’s comment below for more details.

Instead of forking, it’d probably make more sense to just get that folded in. Want to leave a comment on the gist so I can get that updated?

1 Like

hey team - any chance you can add the tutorial for this script as a guide in the help center for folks who are going there and searching for “bulk downloading/exporting”

2 Likes

Pomax passed this request on to the folks who have access to update those pages this morning and we hope to get it added soon!

1 Like

thanks! also, is there a param i can add to the get_project_list url in this script so that it’s in reverse order of creation date. the limit is 400 and i have 700+ projects i’d like to get the most recent now that i’ve downloaded my oldest 400 lol

1 Like

not sure if Pomax has time to update the script itself to add an option on the command line, but if you modify the script locally to add orderDirection=DESC to the query parameters, it should switch to sorting by newest.

2 Likes

Note that the “400” max limit was mostly based on me checking how many projects the “most projects having users” had, and only test accounts showed up as having more than 400. I’ll have to take a closer look to see what happened there! A limit that’s lower than what people actually need is not a super useful limit.

orderDirection did the trick, thanks buds

I had a looksee and I’ve bumped the max limit to 1000, so that everyone except a number of curious accounts with far more projects than they should have should be able to download all their projects without needing to resort to ordering query args.

(I’ve also updated the gist to match)

Hello Glitch Support, I’m so devastated that Glitch is ending web hosting because I’m just starting out in front end development so this is all so new. Can someone ELI5 what I am supposed to do to make sure I don’t lose all my code projects/practices? How do we migrate? And do we want to migrate all projects at once or individually? @Pomax
Easiest way please I have no idea what I’m doing

If you have no idea what you’re doing then unironically the best advice I can give is “ask a friend who’s tech savvy to help you”: hosting will be shut down on July 8th, but you will be able to download your projects until the end of this year so you have some time left to figure out what to do.

I’d recommend downloading all your projects in one go using a script that both downloads your projects as well as all the assets that go with your project (because just clicking the “download” button on your dashboard will not include your project assets), the instructions for which are listed in the first entry of the thread.

I’ve updated the downloader to include the changes that @chriskyfung had worked into their fork, so it now downloads both your regular and archived projects, the former being put in an ./active dir, and the latter in an ./archived dir. So you should actually get all your projects now, rather than only your active projects.

The code has also be moved to a real GitHub repo rather than a gist, over on https://github.com/Pomax/glitch-bulk-downloader

1 Like