Skip to content

Instantly share code, notes, and snippets.

View maozza's full-sized avatar

Maoz Zadok maozza

View GitHub Profile
@maozza
maozza / bitly_to_yourls.py
Last active June 24, 2017 11:21 — forked from PiotrKrzyzek/bitly_to_yourls.py
migration script from bitly to yourls using API #1742
#! /usr/bin/python
#Simple script for importing data from bitly to yourls using bitly and yourls API.
import urllib2, json, urllib
#Add the following data
yourls_host = 'your-domain-where-yours-is-installed.com'
bitly_token = 'your-bitly-token'
yourls_signature = 'your-yourls-signature-key'