Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Tiny4py, a little python wrapper to make shorten urls and QRCodes

1 réponse
Avatar
Andrea Stagi
Hi, I would announce you my new python wrapper to make shorten urls
and QRCodes, using main used services: goo.gl, bit.ly and tinyurl.

Please, visit http://code.google.com/p/tiny4py/

Bests

1 réponse

Avatar
Michel Claveau - MVP
Bonjour !

Je n'ai pas regardé Tiny4py, qui est certainement très bien.

Mais, pour mes petits besoins, j'utilise ce genre de code :

# -*- coding: utf-8 -*-
import urllib,urllib2
adresse='http://ponx.org/ponx'
params = urllib.urlencode({'chs':'200x200', 'cht':'qr', 'chl':adresse})
chart = urllib2.urlopen('https://chart.googleapis.com/chart',params).read()
open("L:qr1.png", 'wb').write(chart)


qui me semble assez simple.

@-salutations
--
Michel Claveau