All pastes #557400 Raw Edit

cj

public python v1 · immutable
·published 2007-06-10 23:45 UTC
rendered paste body
from urllib2 import urlopenlist1 = range(1,169)list1.reverse()list2 = range(0,1000)list2.reverse()for num1 in list1:	if num1 < 100 and num1 > 9:		num1 = '0'+str(num1)	if num1 < 10:		num1 = '00'+str(num1)			for num2 in list2:		if num2 < 100 and num2 > 9:			num2 = '0'+str(num2)		if num2 < 10:			num2 = '00'+str(num2)				url = 'http://tatw-archives.anjunabeats.com/TATW%s_%s_archive.mp3' % (num1,num2)	try:		urlopen(url)		print url	except urllib2.HTTPError:		print "404"