Created
February 27, 2020 11:23
-
-
Save PietroJomini/374787080f00e0a2ce467e8e09bdec51 to your computer and use it in GitHub Desktop.
ah, yes, ππππππππ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = await page.evaluate(() => [...document.querySelector('div.content > table.rows > tbody').childNodes].slice(1).map(el => [...el.childNodes].slice(0, -1).map(el => el)).map((el, index) => { return { index, number: el[0].innerText, date: el[1].innerText, title: el[2].firstChild.innerText, classi: el[2].lastChild.innerText.split(' ').slice(1).map(el => el.replace(',', '').replace('Βͺ', '')) }; })); |
.map(el => el)
?
.map(el => el)
does nothing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I rate it NaN out of [Object object].