Skip to content

Instantly share code, notes, and snippets.

View techbliss's full-sized avatar

Storm Shadow techbliss

View GitHub Profile
@inky
inky / convert_nfo.py
Created July 11, 2010 13:01
Convert a file from UTF-8 to CP437.
#!/usr/bin/env python
import codecs, sys
try:
infile, outfile = sys.argv[1], sys.argv[2]
except IndexError:
sys.stderr.write('usage: %s input_file output_file\n' % sys.argv[0])
sys.exit(1)
nfo = codecs.open(infile, encoding='utf-8').read()
codecs.open(outfile, 'w', encoding='cp437').write(nfo)
@creotiv
creotiv / wkhtml2pdf.py
Created January 9, 2012 22:36
WebKit(PyQt4) PDF Printer example
#!/usr/bin/env python
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
app = QApplication(sys.argv)
@boxdot
boxdot / tmdb_scrape.py
Last active September 17, 2017 14:43
A movie information scraper in python for XBMC
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Usage: ./tmdb_scrape.py <movie title>
#
# A scraper à la MediaElch for XBMC.
#
# Searches for the given movie, retrieves the movie information from TMDb (only
# user ratings are retrieved from IMDb) and saves it to the .nfo file.
# Additionally a movie poster (best rated), a backdrop (also best rated) and