Skip to content

Instantly share code, notes, and snippets.

View amicalmant's full-sized avatar
🏠
Working from home

Christian Aubry amicalmant

🏠
Working from home
View GitHub Profile
@amicalmant
amicalmant / bitly_to_yourls.py
Last active November 14, 2017 03:41 — forked from PiotrKrzyzek/bitly_to_yourls.py
Migrate Links From Standard And Branded Bit.LY To Your YOURLS Install
#! /usr/bin/python
#Simple script for importing data from bitly to yourls using bitly and yourls API.
#authored by: Piotr Krzyzek - https://piotrkrzyzek.com
#https://gist.github.com/PiotrKrzyzek/9d26c24c1d015c7c64e3ca79b3cb3ea1
#You must define variables 'yourls_host', 'bitly_token' and 'yourls_signature'
#as appropriate (see tutorial here: https://piotrkrzyzek.com/migrate-from-bitly-to-yourls/)
import urllib2, json, urllib