- Sign into https://tiktok.com and go to your profile
- Click favorites or likes
- scroll down till all your videos load
- paste the script in console and run it
- Script will download the file containing newline-delimited links
- download via yt-dlp like so:
python3 -m pip install discord.pypython3 initialize.pypkill -HUP UniversalControlThanks to mmac_m3a on macrumors forum.
| # python -m pip install pyperclip | |
| # credit gpt4 | |
| import pyperclip | |
| import time | |
| from urllib.parse import urlparse, urlunparse | |
| # Function to check if the content in the clipboard is a URL | |
| def is_url(content): | |
| try: | |
| result = urlparse(content) |
| import glob | |
| import json | |
| from datetime import datetime | |
| from matplotlib import pyplot | |
| age_ts = [] | |
| age_keys = ["prob_13_17", "prob_18_24", "prob_25_34", "prob_35_over"] | |
| age_lists = {k:[] for k in age_keys} | |
| gen_ts = [] |
| /* eslint-disable camelcase */ | |
| import React, { useState } from "react"; | |
| import { | |
| FormInputRange, | |
| FormInputSelect, | |
| FormItem, | |
| FormLabelRange, | |
| } from "@tesla/design-system-react"; | |
| import { Form, Input } from "@tesla/informed-tds"; | |
| import { arrayOf, func, number, shape, string } from "prop-types"; |
| /* | |
| Collect and export a list of Twitter usernames you're following, along with follow-back status, to a CSV file every 80 seconds. Done client-side using Javascript running in the Console window of the web browser. | |
| Instructions: | |
| 1) Modify the 'LANGUAGE' variable to match your Twitter interface language. | |
| 2) Customize 'SKIP_USERS' with usernames you do not wish to include in the CSV. | |
| 3) 'PRINT_FOLLOW_INFORMATION' determines whether follow-back status is included. | |
| 4) 'SKIP_FOLLOWERS' and 'SKIP_NON_FOLLOWERS' settings filter out respective user groups. | |
| 5) 'MS_PER_CYCLE' controls the frequency of data collection cycles. | |
| 6) Load the Twitter page showing users you're following, open the console (F12), paste this code, and run it. |
Sometimes you have a gif that has a transparent pixel border. This is inconvenient when you don't want this for chat-app emojis or stickers.
Courtest of chatgpt here's a script that takes in a gif via python input and outputs the trimmed gif.