Posts Tagged ‘ python ’
I need a script to compress css file, and I wrote this python one liner to do this. It removes unnecessary white space and strip comments. python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))'[ READ MORE ]
Here are function writen in Python for downloading files from Rapidshare. Unfortunetly you must wait couple of seconds, you can’t skip this because it seems that counting is on server side too. from urllib2 import urlopen, Request from urllib import urlencode import os import re import time import base64 class DownloadLimitException(Exception): def __init__(self, *arg): Exception.__init__(self, [ READ MORE ]
On tastekid.com you could find similar things like movies, book and music. They provide API which return XML or JSON response. Here are code, in Python which use this API. You could download source code from GitHub. This program: will display similar things if you use it without options display information about movie/book/show/author if you [ READ MORE ]
Get every new post delivered to your Inbox.
Join 69 other followers