Advertisement
paster442

Spambot for Scratch

Jul 26th, 2021
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.29 KB | None | 0 0
  1. from requests import get
  2. from scratchclient import ScratchSession
  3. from random import randint
  4. from time import sleep
  5.  
  6. counter = 0
  7. while True:
  8.         if counter == 0:
  9.             spammeduser = input("What user's profile do you want to spam? ")
  10.         else:
  11.             if len(spammeduser) > 20:
  12.                 spammeduser = input("Invalid username. Please try again. ")
  13.             else:
  14.                 break
  15.         if len(spammeduser) > 20:
  16.             spammeduser = input("Invalid username. Please try again. ")
  17.         else:
  18.             break
  19.         counter += 1
  20.  
  21.  
  22.  
  23. counter = 0
  24. while True:
  25.        
  26.         if counter == 0:
  27.             spamtext = input("What text do you want to spam? (Max. length: 450) ")
  28.         else:
  29.             if len(spamtext) > 450:
  30.                 spamtext = input("Invalid length. Please try again. ")
  31.             else:
  32.                 break
  33.         if len(spamtext) > 450:
  34.                 spamtext = input("Invalid length. Please try again. ")
  35.                
  36.         else:
  37.             break
  38.         counter += 1
  39.  
  40.  
  41. username = input("Enter the username of the account that you want to use as a spambot. ")
  42. password = input("Enter the password of the account that you want to use as a spambot. ")
  43.  
  44.  
  45. def antiSpam(text):
  46.     lim = 500
  47.     bypass = ""
  48.    
  49.     for i in range(1, randint(1, lim-len(text))+1):
  50.         bypass = bypass + "Β­"
  51.        
  52.     return bypass
  53.  
  54.  
  55. session = ScratchSession(username, password)
  56. while True:
  57.     session.get_user(spammeduser).post_comment(spamtext))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement