Program a spambot that target's /prog/ in the language of your choice and post the source code here. Most effective spammer wins. Remember, this is the final challenge for a reason.
+-This challenge is designed to kill /prog/ for goood-+
THE DEADLINE:Cinco de Mayo 00:00 /prog/ time.
I watched as the Lamb opened the first of the seven seals. Then I heard one of the four living creatures say in a voice like thunder, "Come and see!" I looked, and there before me was a white horse! Its rider held a bow, and he was given a crown, and he rode out as a conqueror bent on conquest.— Revelation 6:1-2
def scan_first_post(threadid, phrases):
resp = urllib2.urlopen('http://dis.4chan.org/read/prog/' + threadid + '/1')
page = resp.read()
page = page.lower().strip('. _-*,\'"')
for i in range(0, len(phrases)):
if page.find(phrases[i]) != -1:
return 1
return 0
def scan_until(phrases, stopat):
ret = []
pagenum = 1
found = 0
while len(ret) < stopat:
resp = urllib2.urlopen('http://dis.4chan.org/list/prog/' + str(pagenum))
page = resp.read()
hrefstr = '<a href=\'read/prog/'
while len(ret) < stopat:
i = page.find(hrefstr)
if i == -1:
break
i += len(hrefstr)
page = page[i:]
i = page.find(hrefstr)
if i == -1:
break
i += len(hrefstr)
page = page[i:]
i = page.find('\'')
threadid = page[:i]
page = page[i+2:]
i = page.find('</a>')
if i == -1:
break
title = page[:i].strip('. _-*,\'"')
page = page[i:]
i = page.find('<td>')
if i == -1:
break
i += len('<td>')
page = page[i:]
i = page.find('<')
if i == -1:
break
numposts = page[:i]
numposts = int(numposts)
if numposts >= 1000:
continue
title = title.lower()
canpush = 1
for i in range(0, len(phrases)):
if title.find(phrases[i]) != -1:
canpush = 0
break
if scan_first_post(threadid, phrases) != 0:
canpush = 0
if canpush == 1:
ret.append(threadid)
else:
found = 1
pagenum = pagenum + 1
return ret, found
>>20
Python being used like Java. Protip: Python doesn't have checked exceptions and will print out the exception and a helpful stack trace for you when it hits the top of the stack.
>>21
Besides, unlike Java, Python can catch more than one exception type in one line, so you don't have to repeat the same error handling code EVERY FUCKING LINE OH MY GOD THIS CODE IS DRIVING MEINSANE
Name:
Anonymous2011-04-29 14:10
This is just another dumbass fartist thread pushing anti-/prog/ agenda. I say we abandon this thread and start coming up with an anti-spam program/javascript filter.
And so, /prog/ imitates /b/. Spam, retardness and shit everywhere, not a single decent discussion, everyone calls everyone a faggot, spammers try to imitate the /prog/riders by saging from time to time, and >>57[1].
[1] I can peruse your false memories[2].
[2] false memories.
This is enough for me. See you after summer, maybe.