Created
April 24, 2023 08:28
-
-
Save cobanov/023f497e6790b74e79c44c76ce67e68b to your computer and use it in GitHub Desktop.
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 atprototools import Session | |
from tqdm import tqdm | |
USERNAME = "<username>.bsky.social" | |
PASSWORD = "<password>" | |
SKOOTS_TO_DELETE = 63 | |
session = Session(USERNAME, PASSWORD) | |
DID_KEY = session.DID.split(":")[-1] | |
latest_skoots = ( | |
session.get_latest_n_skoots(USERNAME, SKOOTS_TO_DELETE) | |
.json() | |
.get("feed") | |
) | |
for skoot in tqdm(latest_skoots): | |
rkey = skoot.get("post").get("uri").split("/")[-1] | |
resp = session.delete_skoot(DID_KEY, rkey) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment