Last active
March 24, 2017 11:41
-
-
Save aldakur/375fdfbc14bce7511c8d70331af9b5ef to your computer and use it in GitHub Desktop.
Script to use labur.eus services in console [Python]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
res = requests.get('https://labur.eus/api/v2/action/shorten?key=YOUR_API_KEYd&url=URL_YOU_WANT_TO_SHORTEN&is_secret=false') | |
shortened_url = res.text | |
print shortened_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment