This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from optparse import OptionParser | |
import urllib, time, sys, os.path | |
parser = OptionParser() | |
parser.add_option('-n', '--howmany', help='how many gifs to download') | |
parser.add_option('-d', '--delay', help='delay in ms between reqs (default=2000)') | |
opts,args = parser.parse_args() | |
howmany = int(opts.howmany) if opts.howmany is not None else 5 | |
delay = int(opts.delay) if opts.delay is not None else 2000 |
NewerOlder