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

get.py

Name: Anonymous 2015-03-19 11:09

/prog/ is being sensored. Legimite dub and get posters are getting banned. We
must arm ourselves.

I have created a script that will automate GETs, so it will be easier to fight
back. Use it wisely.

#!/usr/bin/python3

# install beautifulsoup4 to run this (python3):
# > pip3 install beautifulsoup4

import http.client as client
import urllib.parse
from bs4 import BeautifulSoup
import re
from math import sqrt
import random

fibs = [1,1]
while fibs[-1] < 1000:
fibs.append(fibs[-1] + fibs[-2])
fibs = set(fibs)
primes = set([2] + list(filter(lambda p: all(p % n for n in range(3, int(sqrt(p)) + 1, 2)), range(3, 1000, 2))))
def get(i):
s = str(i)
if len(s) >= 2 and s[-1] == s[-2]:
return "check 'em"
if i in fibs:
return 'fibs get'
if i in primes:
return 'prime get'
return None

HOST = 'bbs.progrider.org'
PATH = '/prog/'
POSTPATH = '/prog/post.pl'

def spam(thr, msg):
print('spam', thr, msg)

conn = client.HTTPConnection(host=HOST)
headers = {"Content-type": "application/x-www-form-urlencoded"}
params = urllib.parse.urlencode(
{'thread': thr, 'comment': '', 'name': '', 'other': msg})
conn.request('POST', POSTPATH, params, headers)
print('response...', conn.getresponse().read())

conn = client.HTTPConnection(host=HOST)
conn.request('GET', PATH)
data = conn.getresponse().read().decode('utf-8')
soup = BeautifulSoup(data)

threads = [(re.findall('\d+', span.a.attrs['href'])[0],
re.findall('\(\d+\)', span.text)[0][1:-1])
for span in soup.find(id='threadlist').find_all('span')
if 'thread' in span.attrs['class']]

random.shuffle(threads)
for thr,cnt in threads:
msg = get(int(cnt)+1)
if msg is not None:
spam(thr, msg)
break

print('end')


To run this.. maybe use a script like:
while true; do ./get.py; sleep 200; done

Now, I probably get banned for this and this is my last IP-address so...
Farewell. Get 'em all.

fibs get

Name: Anonymous 2015-03-19 22:49

>>23
1295671004|33|Anonymous||| |2011-01-22 22:49|
<tt>&lt;---- check 'em dubz</tt>

1295726267|10|Anonymous||| |2011-01-22 18:04|
DESKTOP THREAD!<br/>
INSTALL GENTOO!<br/>
RATE MY BUILD!<br/>
ALWAYS BET ON DUKE!<br/>
PS3 HAS NO GAEMS!<br/>
<code>`&gt; implying mfw</code><br/>
CHECK 'EM! (POINTING TO POSTER BELOW ME)

1295579416|10|Anonymous||| |2011-01-21 15:41|
&lt;--- check 'em motherbitch!

1290358602|46|Anonymous||| |2011-01-20 12:31|
<a href="read/prog/1290358602/43">&gt;&gt;43</a> 23:33<br/>
<a href="read/prog/1290358602/44">&gt;&gt;44</a><br/>
<a href="read/prog/1290358602/45">&gt;&gt;45</a> 11:44<br/>
Check 'em!

1290027336|333|Anonymous||| |2011-01-08 20:53|
TRIPLEZ. CHECK 'EM.

1275945764|111|llololololol|mailto:epic win|| |2011-01-08 20:52|
TRIPLEZ. CHECK 'EM.

1294333145|44|Anonymous||| |2011-01-08 14:18|
check 'em

1294392429|555|Anonymous||| |2011-01-08 14:18|
Triplez. Check 'em.

1291161711|485|Anonymous||| |2010-12-04 09:45|
CHECK 'EM DUBZ

1291220592|445|Anonymous||| |2010-12-02 15:40|
&lt;-- check 'em <span class="spoiler" onmouseover="this.style.color='#FFF';" onmouseout="this.style.color=this.style.backgroundColor='#000'">DUBS</span>

1290751004|37|Anonymous||| |2010-11-30 19:19|
&lt;-- CHECK 'EM!

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