#!/usr/bin/python import urllib2 for i in range(1,100): f = urllib2.urlopen('http://uri.mn/g/http://example.com/spam-test-%s' % i).read()