I want to try and put all of his monikers in to try and stop him shitting up lounge. I'd work on adding phrases/context to try and spot his anonymous posts too.
I'd like to help you, as I have nothing better to do, but I'm not sure I understand. There was a bot named "Anusymous" or it's just how you call it? What does the bot do?
Name:
Anonymous2013-01-26 9:00
It was Jim
Name:
Anonymous2013-01-26 9:01
ormaybeitwasntJIM?
Name:
Anonymous2013-01-26 9:10
Hi
My name Mahesh Babu Rajaraman.
I can make shitposting bot for you very cheap very quick. I have lot experience J2EE / OracleDB / PHP / C# .net VB ... See my bids history pls. Very cheap very quality code.
++++
>>8
Although I'm sure you could come up with this ugly bash cocktail of sed, awk and cut yourself, here:
This will scan the front page every minute, looking for all messages with milkribs, furpastica or L33t as tripcodes and reply with "you're an anus"
#/bin/bash
# replace sed -n '/postertrip\">/,/<\/span>/p'
# with sed -n '/postername\">/,/<\/span>/p' to grep something in the name field
# with sed -n '/<blockquote>/,/<\/blockquote>/p' to grep something in the message block
com="You're an anus"
while true ; do
last_threads=$(curl --silent http://dis.4chan.org/lounge/subject.txt | sed 18q | awk -F'<>' '{print $4"/"$5}')
for thread in $last_threads ; do
t_number=$(echo $thread | awk '{print $1}')
if curl --silent "http://dis.4chan.org/read/lounge/"$t_number | sed -n '/postertrip\">/,/<\/span>/p' | grep -E -s -q -i 'Milkribs|futuristipastica|L33t' ; then
id=$(echo $t_number | awk -F'/' '{print $1}')
anus=$(echo $t_number | awk -F'/' '{print $2}')
curl -A "Mozilla/5.0" -F bbs=lounge -F id=$id -F lol what 2 -F meiru="sage" -F kotehan="Anonymous" -F com=">>$anus
$com" -F email="'" http://dis.4chan.org/post > /dev/null 2>&1
sleep 5
fi
done
sleep 180
done
You've got a skeleton that you can tweak. Have fun.
>>10
br tag error line 14:
#/bin/bash
# replace sed -n '/postertrip\">/,/<\/span>/p'
# with sed -n '/postername\">/,/<\/span>/p' to grep something in the name field
# with sed -n '/<blockquote>/,/<\/blockquote>/p' to grep something in the message block
com="You're an anus"
while true ; do
last_threads=$(curl --silent http://dis.4chan.org/lounge/subject.txt | sed 18q | awk -F'<>' '{print $4"/"$5}')
for thread in $last_threads ; do
t_number=$(echo $thread | awk '{print $1}')
if curl --silent "http://dis.4chan.org/read/lounge/"$t_number | sed -n '/postertrip\">/,/<\/span>/p' | grep -E -s -q -i 'Milkribs|futuristipastica|L33t' ; then
id=$(echo $t_number | awk -F'/' '{print $1}')
anus=$(echo $t_number | awk -F'/' '{print $2}')
curl -A "Mozilla/5.0" -F bbs=lounge -F id=$id -F lol what 2 -F meiru="sage" -F kotehan="Anonymous" -F com=">>$anus[br]$com" -F email="'" http://dis.4chan.org/post > /dev/null 2>&1
sleep 5
fi
done
sleep 180
done
Change the bbs and anusus variables to choose your targets. Configure a cronjob to run it automatically every so often. Keep in mind that those subject.txt files get really big, so pick a reasonable schedule if you have limited bandwidth.
#!/usr/bin/env python
import urllib
bbs = 'prog'
anuses = [
'!L33tUKZj5I',
]
url = 'https://dis.4chan.org/%s/subject.txt' % bbs
f = urllib.urlopen(url)
for line in f.readlines():
try:
_, _, _, id_, posts, poster, _ = line.strip().split('<>')
except ValueError:
continue
if int(posts) < 1000 and poster in anuses:
url = 'https://dis.4chan.org/post'
data = {
'bbs': bbs,
'id': id_,
'kotehan': 'Anonymous',
'meiru': '',
'com': ">>%s\nI insure you you're an anus[i]![/i]" % (posts),
'shiichan': 'proper2',
'email': "'",
}
urllib.urlopen(url, urllib.urlencode(data))
f.close()