Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #Proof of concept
- #http://service.matomy.com/qrcode.jsp?width=115&height=115&text=http://www.google.com/
- import urllib2
- import json
- import sys
- def user_search(query):
- print 'QR Code Test'
- url = 'http://service.matomy.com/qrcode.jsp?'
- width = raw_input("Width: ")
- url = url + 'width=' + width
- #http://service.matomy.com/qrcode.jsp?width=115
- height = raw_input("Height: ")
- url = url + '&height=' + height + '&text='
- #http://service.matomy.com/qrcode.jsp?width=115&height=115&text=
- text = raw_input("Text: ")
- url = url + text
- #http://service.matomy.com/qrcode.jsp?width=115&height=115&text=http://www.google.com/
- print url
- temp = urllib2.urlopen(url).geturl()
- print temp
- user_search("This is to call function with cmd")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement