Skip to content

Instantly share code, notes, and snippets.

View sterra loop.py
from os import system
from time import sleep
from tqdm import tqdm
accounts = [kyliejenner, travisscott, ...]
sleep_time = 300
for account in accounts:
system(f"sterra export -ssid xxxx -u {account} -t following --name {account}_following")
for _ in tqdm(range(sleep_time), desc="time until new scrape"):
View DouyinDiaporamaDownloader.py
from argparse import ArgumentParser
from re import match
import requests
from os import path
from tqdm import tqdm
class UrlNotMatchingError(Exception): pass
class APIFetchingError(Exception): pass
def _getApiResp(url) -> dict: