-
Notifications
You must be signed in to change notification settings - Fork 5
/
qr-code.py
35 lines (32 loc) · 1.36 KB
/
qr-code.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
# -*- coding:utf-8 -*-
def qr_logo():
logo = """
▄▄▄▄▄▄▄ ▄▄ ▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ ▄▀▄ █ █ ▄▄▄ █ QR Code Terminal Generator
█ ███ █ █▄▄█ █ ███ █
█▄▄▄▄▄█ ▄ ▄ ▄ █▄▄▄▄▄█ Author : Ismail Tasdelen
▄▄▄▄ ▄ ▄▀███▄ ▄▄▄ ▄
▀▄█▄ ▄▄███▀ ▄▄█▀ ███ Website : http://ismailtasdelen.me/
▀▄▀▄ ▄▀▀ ▄█▄▄▄ ▀▀ ▄ Linkedin : https://www.linkedin.com/in/ismailtasdelen/
▄▄▄▄▄▄▄ ▀ █▀ ███▄▀ GitHub : https://github.com/ismailtasdelen/
█ ▄▄▄ █ ▀▄ █▀ █▄██▄▀ Twitter : https://twitter.com/ismailtsdln/
█ ███ █ █▄█▄█ ▄▄▀ Mail : [email protected]
█▄▄▄▄▄█ █▀▀▄ ██▀ ▄ ▀
""";
print logo;
def qr_code_generate():
qr_logo()
qr_size = raw_input("[+] Enter a size: ");
qr_data = raw_input("[+] Specify a data for the QR Code : ");
url = "https://chart.googleapis.com/chart?";
size = "chs=" + qr_size;
im1 = "&";
qr = "cht=qr";
im2 = "&";
data = "chl=" + qr_data;
im3 = "&";
encode = "choe=UTF-8";
generate = url + size + im1 + qr + im2 + data + im3 + encode;
print "[+]", generate;
qr_code_generate()