Skip to content

Instantly share code, notes, and snippets.

@maluta
Created July 22, 2010 16:23
Show Gist options
  • Save maluta/486190 to your computer and use it in GitHub Desktop.
Save maluta/486190 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf-8 -*-
from urllib import urlencode
import httplib
import sys
api_url="u.nu"
var = urlencode({'url':sys.argv[1]})
args = "/unu-api-simple?%s" % (var)
conn = httplib.HTTPConnection(api_url)
conn.request("GET",args)
ret = conn.getresponse()
print ret.read()
@kacem1991
Copy link

Thankyou free mach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment