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
#! /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 |