Skip to content

Instantly share code, notes, and snippets.

@lolzballs
lolzballs / Python Imgur Uploader
Created May 30, 2015 01:11
Uploads images from clipboard to imgur and put the link in your clipboard
#!/usr/bin/python
import pygtk
pygtk.require('2.0')
import gtk
import sys, os
import cStringIO
import base64
import json
@shidarin
shidarin / imgurAlbum.py
Last active March 30, 2016 11:12
Imgur Album to phpbb forum thumbnail link markdown
import requests
import bs4
def _trim(string, trim_extra=False):
if trim_extra:
trim_length = -5
else:
trim_length = -4
return string[:trim_length]