View sterra loop.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |