![]() = image size by default." print "-e, -Cache: path to the cache." print "-x, -ExcludedList: excluded urls, comma separated." print "-l, -Local: use a local copy of the charts. Format: numberxnumber" print "-c, -CanvasSize: size of the canvas. from 0 to 100" print "-i, -ImageSize: size of the final image. One of 3month,6month,12month or overall." print "-O, -FinalOpacity: darkness of the final image. Username by default." print "-t, -Past: how far back should the profile go. 13 July 2009 _author_ = 'Koant ()' _version_ = '$13 July 2009$' _date_ = '$Date: 3 $' _copyright_ = 'Copyright (c) 2008 Koant' _license_ = 'GPL' from urllib import urlopen from xml.dom import minidom import os import os.path import sys from getopt import getopt import random import Image import ImageDraw import ImageFilter def usage (): print "Quick examples" print "-" print "./wallpaperfm.py -m tile -u your_lastfm_username will generate an image with all your favorite albums tiled up in a random order." print "./wallpaperfm.py -m glass -u your_lastfm_username will generate an image with a small random collection of albums, with a glassy effect." print "./wallpaperfm.py -m collage -u your_lastfm_username will generate a random collage of your favorite albums." print " \n Global switches:" print "-u, -Username: your last.fm username." print "-f, -Filename: the filename where the image will be saved. a last.fm account and an active internet connection # v. Python Imaging Library (probably already installed, available through synaptic for Ubuntu users) #. wallpaper.py will display the instructions # Requirements: #. #!/usr/bin/python # Wallpaperfm.py is a python script that generates desktop wallpapers from your last.fm music profile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |