Created
March 25, 2019 20:45
-
-
Save ZeroOne3010/aa5d2e980d33bc3a9476f34f0923bab6 to your computer and use it in GitHub Desktop.
MBnet Apaja parser. Parses the contents of MBnet Apaja pages (say, https://web.archive.org/web/20011215124711/http://www.mbnet.fi/Apaja/alueet/tiedostot.asp?ParentID=81&faid=142&Sort=Name&Order=ASC&All=1) into JSON objects.
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
| Array.from(document.getElementsByTagName('tr')) | |
| .filter(e => e.getAttribute('bgcolor') == '#FFFFBB' || e.getAttribute('bgcolor') == '#FFFFDD') | |
| .map(e => ({fileName: e.children[0].innerText, fileSize: e.children[1].innerText, publishDate: e.children[2].innerText, description: e.children[3].innerText})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment