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

Pages: 1-

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 11:24

What's wrong with that, other than the missing </table> and the FIOC/HTML?

Name: Anonymous 2013-09-09 11:33

FIOC?
I just feel crappy because it took me so damn long to write. And I'm still annoyed at the website. What fucking retard uses a 20 image/page gallery when the average set is 350+ images?

Name: Anonymous 2013-09-09 11:45

>>3
Why don't you write a userscript for this instead of trying to mess around in FIOC? JS may be shit but at least it has all the facilities for manipulating the DOM built into it.

Name: Anonymous 2013-09-09 11:58

>>2
What fucking retard uses a 20 image/page gallery when the average set is 350+ images?
Are you, by any chance, dealing with Danbooru?

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?

Name: Anonymous 2013-09-09 12:33

HTML was made to be written ``in lisp''.

Name: Anonymous 2013-09-09 12:46

>>6

y

Name: Anonymous 2013-09-09 14:38

>>7
JS, you mean, yeah. HTML was a mess since its inception. roff was there, and worked just fine. Now we have better tools today: troff, nroff, groff, unroff, Heirloom troff (fav), etc.. However, I do like the move that Lout is doing although, to get away from Postcript's mess.

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