View on GitHub

qrcode_song

One line code to generate a qrcode. A lightweight qrcode generator (crawler) based on cli-qrcode and web crawler.

qrcode_song

A qrcode generator(crawler) based on cli-qrcode and web spider. Read documents here.

Requirements

Functions

Main function:

Auxiliary functions:

Installation

pip install qrcode-song

Test

>>> import qrcode_song as qs
>>> qs.get_pngurl_by_text('wow')
'https://qr.api.cli.im/qr?...e6eb'

Tutorial

Actually, you will know all functions of this project in test.py.

import qrcode_song as qs

url1 = qs.get_pngurl_by_text('hello world', black = True)
# print url1 or print(url1)
img1 = qs.get_png_by_url(url1)
qs.save_png(img1, './hello.png')

url2 = qs.get_pngurl_by_url('http://www.baidu.com') # this function also has 'black' parameter
# print url2 or print(url2)
img2 = qs.get_png_by_url(url2)
qs.save_png(img2, './baidu.png')