Last active
July 30, 2016 17:57
-
-
Save Taormina/6196634 to your computer and use it in GitHub Desktop.
A module that can be simply imported into any Python project to allow for checking to see if a Skype username is valid or not.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def checkName(name): | |
values = { "new_username" : name } | |
r = requests.post("https://login.skype.com/json/validator", values) | |
return "not available" in r.json()[u'data'][u'markup'] |
Its not working gives 404 error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice one, clean and easy, thx)