[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / bane / leftpol / sonyeon / tacos / vg / whats ][Options][ watchlist ]

/qresearch/ - Q Research Board

Research and discussion about Q's crumbs
You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

Pro Aris et Focis

File (hide): 9074087d94c524f⋯.png (79.06 KB, 866x586, 433:293, Q2pic.png) (h) (u)

File (hide): add7811cf48dcc6⋯.png (973.05 KB, 1078x828, 539:414, Q3.png) (h) (u)

File (hide): e8a35f76151d762⋯.png (939.6 KB, 1082x848, 541:424, Q4.png) (h) (u)

File (hide): ac36dbab77c46b2⋯.png (991.68 KB, 1102x842, 551:421, Q5.png) (h) (u)

File (hide): 5866755d1a534fd⋯.png (962.4 KB, 1129x857, 1129:857, Q6.png) (h) (u)

[–]

7567ca (3) No.947890[Watch Thread][Show All Posts]

SES linked to all events… Machine Learning on PDF, TXT, DOCX files to find relevant data.

(Self-doxxing. Leave the name and email field blank. This is for your safety and anonymity.) -BO

Post last edited at

7567ca (3) No.947992

>>>>947890

Build once deploy everywhere

(Self-doxxing. Leave the name and email field blank. This is for your safety and anonymity.) -BO

Post last edited at

7567ca (3) No.948038

var articles = Array.from(document.querySelectorAll('article'))

var structured = articles.reduce((acc, key, pos) => {

var object = {

postId: key.id,

postNumber: key.children[0].innerText,

postbody: {

time: '',

tripcode: '',

post: '',

userId: '',

postLink: '',

links: [],

response: false,

responseBody: {

postId: '',

postLink: '',

time: '',

tricode: '',

userId: '',

links: [],

post: ''

}

}

}

Array.from(key.children).map((child, pos) => {

if (child.tagName === 'A') {

object.postbody.links.push(child.href)

}

if (child.tagName === 'HEADER') {

//headers

Array.from(child.children).map((header, p) => {

if (header.tagName === 'SMALL') {

// loop through small

Array.from(header.children).map((small, pos) => {

if (small.tagName === 'TIME') {

// Object.assign({}, object, { postbody.time : small.dateTime })

object.postbody.time = small.dateTime

}

if (small.className === 'trip') {

object.postbody.tripcode = small.innerText

}

if (small.className === 'userid') {

object.postbody.userId = small.innerText

}

if (small.tagName === 'A') {

object.postbody.postLink = small.href

}

})

}

})

}

if (child.tagName === 'DIV') {

var text = ''

Array.from(child.childNodes).map((div, p) => {

var msg = div.nodeName !== '#text'? div.innerHTML : div.nodeValue

if (div.nodeName === 'BR') {

msg = ', '

}

text += `${msg}`

})

object.postbody.post = text

}

if (child.tagName === 'BLOCKQUOTE') {

Array.from(child.children).map((elem) => {

// header inside of BlockQuote

if (elem.tagName === 'HEADER') {

//headers

Array.from(elem.children).map((header, p) => {

if (header.tagName === 'SMALL') {

// loop through small

Array.from(header.children).map((small, pos) => {

if (small.tagName === 'TIME') {

// Object.assign({}, object, { postbody.time : small.dateTime })

object.postbody.responseBody.time = small.dateTime

}

if (small.className === 'trip') {

object.postbody.responseBody.tripcode = small.innerText

}

if (small.className === 'userid') {

object.postbody.responseBody.userId = small.innerText

}

})

}

})

}

if (elem.tagName === 'A') {

// object.postbody.responseBody.imageLink

// var link = elem.href.match(/png|jpg|html|pdf/g)

object.postbody.responseBody.links.push(elem.href)

}

var textBlock = ''

if (elem.tagName === 'DIV') {

Array.from(child.childNodes).map((div) => {

if (div.tagName !== 'SMALL') {

//console.log(kid)

var msgBlock = div.nodeName !== '#text'? div.innerHTML : div.nodeValue

if (div.nodeName === 'BR') {

msgBlock = ', '

}

textBlock += `${msgBlock}`

}

})// end of array.map() loop

object.postbody.responseBody.post = textBlock

}

})

}

})

if (key) {

acc.push(object)

}

return acc

}, [])

var massaged = structured.reduce((acc, key, pos) => {

if (key) {

var changed = key.postbody.post.replace('span style=\"color:#bd0f0f\">&gt;&gt;',).replace('</span',).replace(/(?<=\<)(.*?)(?=\>)/,).replace('<>, ',)

key.postbody.post = changed

acc.push(Object.assign({}, key))

}

return acc

}, [])

(Self-doxxing. Leave the name and email field blank. This is for your safety and anonymity.) -BO

Post last edited at



[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
2 replies | 0 images | 1 UIDs | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / bane / leftpol / sonyeon / tacos / vg / whats ][ watchlist ]