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

Untapped dubs on this board

Name: Steve 2017-02-12 5:03

Sitting on a goldmine!

"use strict";

let fs = require("fs");

let file = fs.readFileSync("progrider.txt", "utf8").toString().split("\r\n");

let output = "";

for(let i = 0, n = file.length; i < n; i++)
{
try {
let pieces = file[i].split("\t");

let title = pieces[1];
let nextPost = (Number(pieces[2]) + 1).toString();

if(nextPost.length > 1 && nextPost.substring(nextPost.length - 1, nextPost.length) == nextPost.substring(nextPost.length - 2, nextPost.length - 1))
{
output += "TITLE: "+ title +" NEXT POST: "+ nextPost +"\r\n";
}
}
catch(e) { }
}

fs.writeFileSync("output.txt", output, "utf8");


TITLE: 2ch english if you will NEXT POST: 11
TITLE: C/C++ vs Good Language NEXT POST: 55
TITLE: Who needs functional programming... NEXT POST: 11
TITLE: Diversity on /prog/ NEXT POST: 33
TITLE: Elegance of Haskell NEXT POST: 22
TITLE: Haskell can't prove shit NEXT POST: 22

Here's your dilemma. If you use these dubs now, you will have used this shitty JS to acquire them.

Name: Anonymous 2017-02-12 17:31

Your browser has a console, Steve.
Array.from($$(".threads tbody tr")).filter(t => { let i = parseInt(t.childNodes[2].innerHTML) + 1; return i % 10 == Math.floor(i / 10) % 10; }).map(t => t.childNodes[1].innerText)

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