Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from scratchclient import ScratchSession as login
- from random import randint
- from time import time
- start_time = time()
- session = login("username", "password") # replace this with your username and password
- def anti_spam():
- empty_string = ""
- for _ in range(randint(1, 500)):
- empty_string += "\u00AD" # soft hyphen to avoid spam
- return empty_string
- parent_id = ""
- commentee_id = randint(139, 80000000)
- session.get_user("user").post_comment(anti_spam(), parent_id, commentee_id)
- print("Execution time: " + str(round((time() - start_time), 3)) + " s")
Add Comment
Please, Sign In to add comment