Skip to content

Instantly share code, notes, and snippets.

View Quantum-Codes's full-sized avatar
🪐
on another planet

Ankit Sinha Quantum-Codes

🪐
on another planet
  • Mars
View GitHub Profile
@Quantum-Codes
Quantum-Codes / main.py
Created January 19, 2022 07:35
Check whether a username is valid or not in python (ScraGet)
from ScraGet import ScraGet
username = ScraGet.get_user_extra()
user = input("Username to check: ").strip()
username.check_user(user)
if username.valid:
if username.taken:
print(f"{user} is valid but already taken")
else:
@Quantum-Codes
Quantum-Codes / main.py
Last active January 19, 2022 10:36
Cloud event/ Cloud scanner (ScraGet)
from ScraGet import ScraGet
cloud = ScraGet.cloud()
@cloud.scan(ID="612229554",delay=1,NewThread=False) #params explained below
def hello(change): #change parameter is automatically passed.
print(change.var,":",change.value)
cloud.stop = True #this stops the scanning. Don't put if u want to keep scanning