Usar goo.gl desde python para acortar URLs

IT Igor Támara Igor Támara

Igor Támara

Senior Software Engineer
1 min read.

Emplear goog.gl desde Python resulta sencillo. Dado que tenía que asegurar los headers adecuados para emplear tal servicio, puesto que urllib2 coloca de forma predeterminada application/x-www-form-urlencoded, colocamos esta información para recordarlo cuando sea necesario :)

Claro, no deje de ver la documentación.


Written by Igor Támara

IT Igor Támara Igor Támara

A seasoned developer, Igor brings expertise in designing and building complex software systems. With a focus on quality and performance, they lead projects that drive innovation and deliver reliable solutions to meet user needs.

Newsletter

Subscribe to our newsletter:

Read more

Write beautiful software

You are an artist. Your laptop is your brush. Incidentally, your brush is emblazoned with a small, white, glowing piece of fr...

1 min read.

Build Once. Own Forever.