Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Osu score search
- elif used_prefix and cmd=="osu" and self.getAccess(user)>=1:
- found = False
- checkurl = requests.get("http://osu.ppy.sh/api/get_user?k="+osu_key+"&u=123456789canceraids&m=0")
- soup = BeautifulSoup(checkurl.text, "html.parser")
- onlytext = str(soup.findAll(text=True))
- if "'[]'" in onlytext:
- found == False
- else:
- found == True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement