Skip to content

Instantly share code, notes, and snippets.

@batok
Created April 27, 2010 15:03
Show Gist options
  • Save batok/380833 to your computer and use it in GitHub Desktop.
Save batok/380833 to your computer and use it in GitHub Desktop.
Calling a skype user from python through the browser
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