Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

shitass html babby

Name: Anonymous 2013-09-09 11:20

My code is shit even for a stupid fucking html image gallery for a stupid fucking website that has a stupid fucking interface. I'm fucking pissed that their gallery is shitty and I'm fucking pissed that I had to MAKE A FUCKING EFFORT to fix something that shouldn't be so fucking stupid in the fist place. How do I git gud?

f = open('fullgallery.html', 'w')
galleryNumber = input('Gimme gallery number:')
fullDir = 'http://member.shittypornsite.com/sets/' + repr(galleryNumber).zfill(3) + '/video/a'
thumbDir = 'http://member.shittypornsite.com/sets/' + repr(galleryNumber).zfill(3) + '/video/s'

f.write('<html>\n<body bgcolor="#999999">\n')
f.write('<table width="600" border="0" cellspacing="5" cellpadding="0" align="center">\n')
for i in range(1, 601):
if ((i - 1) % 5) == 0:
f.write('<tr>\n')
f.write('<td><a href="' + fullDir + repr(i).zfill(3) + '.jpg"><img src="' + thumbDir + repr(i).zfill(3) + '.jpg" border="1"></a></td>\n')
if (i % 5) == 0:
f.write('</tr>\n')

Name: Anonymous 2013-09-09 12:09

>>4
I wouldn't even know where to begin. My entire thought process for tackling this problem was:
☞This is too much for copy-pasting in Notepad.
☞Python is easy and forgiving with strings.
And then it took way too fucking long because I started out the wrong way and then I lost my boner and then I was even more frustrated.

cut off penis for faster coding y/n?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List