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-20 6:31

>>33
I see it more as an artist vowing to continue their work in the face of a harsh critic. Or a gay man walking naked with rainbow body paint in a parade in the face of mainstream homophobia. A simple act of defiance that affirms owns own identity and place in world when there are people that seem to wish he wasn't in it. And the defiant act is to merely continue one's existence, living one's life, and they normally would.

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