Created
April 27, 2010 15:03
-
-
Save batok/380833 to your computer and use it in GitHub Desktop.
Calling a skype user from python through the browser
This file contains hidden or 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 os | |
SKYPE_DESTINATION = "placeusernamehere_or_number_if_you_have_skype_credit" | |
with open("skype.html", "w") as f: | |
contents = """ | |
<html> | |
<head> | |
<script> | |
window.location="skype:{0}?call"; | |
</script> | |
</head> | |
</html> | |
""".format(SKYPE_DESTINATION) | |
f.write(contents) | |
os.system("open skype.html") #change this according to your OS, this line works for mac os x. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment