Skip to content

Instantly share code, notes, and snippets.

View twistedstream's full-sized avatar

Peter Stromquist twistedstream

View GitHub Profile
@twistedstream
twistedstream / README.md
Last active September 29, 2020 12:55
Download videos from your TikTok account

If you're shutting down your TikTok account or you simply want a copy of all the videos you've published, TikTok has a process where you can request your data and then download it. However, the process is a bit arduous (perhaps on purpose) as you have to first request the download, wait a few days, then make sure you download it before it expires. Then, once you've downloaded the file, you realize it only contains single-use links to download the actual videos. If you have a lot of videos, the process of downloading each can be very time-consuming.

I've written a simple Node.js script that automates the process. Here's how to use it:

  1. Make sure you have Node.js installed on your computer
  2. Go through the process with TikTok to request and download your data file (you can Google how to do this)
  3. Unzip the resulting data file from TikTok
  4. Download the index.js and package.json files included in this gist and move them into a separate folder (eg. `~/Downloads/dow
@twistedstream
twistedstream / login.html
Created November 16, 2017 15:22
Auth0 Hosted Login Page that
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Sign In with Auth0</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
@twistedstream
twistedstream / styles.less
Created April 3, 2015 20:43
Atom.io styles.less
/* appended to the end */
@color: rgba(255, 255, 255, 0.2);
.invisible-character {
color: transparent;
.source & {
color: @color;
@twistedstream
twistedstream / reinstall-node-via-homebrew.md
Last active October 10, 2023 11:48
How to reinstall Node + NPM via NVM

Remove existing Node/NPM

If you installed Node directly using Homebrew, then uninstall it by running:

brew uninstall node

Now, clean up the rest: