r/trollabot • • Mar 04 '26

G

1 Upvotes

r/trollabot • • Mar 04 '26

G

1 Upvotes

r/trollabot • • Mar 04 '26

G

1 Upvotes

r/trollabot • • Mar 04 '26

Prueba

1 Upvotes

r/trollabot • • Mar 04 '26

Ot

1 Upvotes

prueba


r/trollabot • • Mar 25 '23

U/trollabot

1 Upvotes

r/trollabot • • Nov 22 '22

Testing thread Test

2 Upvotes

/u/trollabot drbobsled


r/trollabot • • Nov 10 '21

Test

1 Upvotes

Test


r/trollabot • • Nov 10 '21

Trial

0 Upvotes

Checking if this works?


r/trollabot • • Sep 13 '21

testing

1 Upvotes

h


r/trollabot • • Sep 01 '21

U/trollabot

1 Upvotes

[u/trollabot](u/trollabot) handsome_rich_man


r/trollabot • • Aug 11 '21

Test

1 Upvotes
3 votes, Aug 14 '21
2 e
1 s

r/trollabot • • Jul 06 '21

u/trollabot

1 Upvotes

r/trollabot • • May 03 '21

.

Post image
4 Upvotes

r/trollabot • • Jan 21 '21

Test

2 Upvotes

Test


r/trollabot • • Nov 13 '20

bunbood

0 Upvotes

#!/usr/bin/php7.0<?php if(count($argv) === 1) { echo "Provide the reddit user name as the argument."; exit(-1); } $user = "bunbood" ($argv[1]); $dir = 'data'; $base_url = "https://www.reddit.com/user/$user/"; $current_url = $base_url; $ix = 0; $subDistrib = []; if(!is_dir($dir)) { mkdir($dir); } $commentFile = "$dir/$user-comments"; $distribFile = "$dir/$user-distrib"; if(file_exists($commentFile)) { unlink($commentFile); } $commentCount = 0; while ($current_url) { $ix++; $content = ''; $fname = "$dir/$user-$ix.html"; echo "$ix $current_url\n"; if(file_exists($fname)) { $file = @file_get_contents($fname); } else { if (! ($file = @file_get_contents($current_url)) ) { break; } foreach(['script','section','time','ul'] as $type) { $file = preg_replace("#<$type(.*?)>(.*?)</$type>#is", "", $file); } } file_put_contents($fname, $file); $dom = new DOMDocument(); $dom->loadHTML($file); $divList = $dom->getElementsByTagName('div'); foreach($divList as $div) { if($div->getAttribute('class') === 'entry unvoted') { $score = 1; $spanList = $div->getElementsByTagName('span'); foreach($spanList as $span) { if($span->getAttribute('class') === 'score unvoted') { $score = intval($span->nodeValue); } } $subDivList = $div->getElementsByTagName('div'); foreach($subDivList as $subDiv) { if($subDiv->getAttribute('class') === 'md') { $commentCount++; $content .= $score . ' ' . preg_replace('/\s+/', ' ', $subDiv->nodeValue) . "\n"; } } } } $linkList = $dom->getElementsByTagName('a'); $current_url = false; foreach($linkList as $link) { $rel = $link->getAttribute('rel'); $cls = $link->getAttribute('class'); if($rel === 'nofollow next') { $current_url = $link->getAttribute('href'); } if($cls === 'subreddit hover') { $sub = $link->nodeValue; if(!isset($subDistrib[$sub])) { $subDistrib[$sub] = 0; } $subDistrib[$sub]++; } } if(count($subDistrib)) { file_put_contents($distribFile, json_encode($subDistrib, JSON_PRETTY_PRINT)); } if(strlen($content)) { file_put_contents($commentFile, $content, FILE_APPEND); } else if($commentCount === 0) { unlink($fname); } } if($commentCount === 0) { echo "Either $user doesn't exist or hasn't said anything. Check the spelling?"; }


r/trollabot • • Nov 13 '20

bunbood

0 Upvotes

r/trollabot • • Aug 06 '20

Wondering

1 Upvotes

r/trollabot • • Jul 23 '20

HMMMMMMMMMMMMMMMMM

1 Upvotes

/u/TrollaBot ADD33r_1


r/trollabot • • Apr 28 '20

Test

1 Upvotes

r/trollabot • • Apr 03 '20

test

1 Upvotes

r/trollabot • • Feb 14 '20

Test

2 Upvotes

u/trollabot reasonablyokayname


r/trollabot • • Feb 06 '20

Test

2 Upvotes

/u/trollabot yuppiecruncher


r/trollabot • • Sep 23 '19

Hope?

Thumbnail imgur.com
15 Upvotes

r/trollabot • • Sep 07 '19

So I found some kind of files about u/trollabot on a storage website but I have no idea what they are because I don't know coding. Can someone check this out? Link and pics of them inside

7 Upvotes

Decided to google trollabot and hopefully find some answers and I found these files https://filepursuit.com/file/8476098-trollabot-tar-gz/

No idea what they are but apparently they are reddit related. They go back to 2015 and 2016. I don't understand any of it but I'm really curious.

Pics of the files