Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #Osu score search
  2. elif used_prefix and cmd=="osu" and self.getAccess(user)>=1:
  3. found = False
  4. checkurl = requests.get("http://osu.ppy.sh/api/get_user?k="+osu_key+"&u=123456789canceraids&m=0")
  5. soup = BeautifulSoup(checkurl.text, "html.parser")
  6. onlytext = str(soup.findAll(text=True))
  7. if "'[]'" in onlytext:
  8. found == False
  9. else:
  10. found == True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement