How
Firstly find which document is which books.
Steps
- Step 1: Gather which ref we have.
ls |grep "" > ref.txt
ls | grep "" > ref.txt
- Step 2: Gather which book list we have.
const data = document.querySelectorAll('.entry-content p')[1].innerHTML.split('<br>').map(row => row.toLowerCase()).join('\n')
const dummyInput = document.createElement('input')
dummyInput.value = data;
dummyInput.select();
dummyInput.setSelectionRange(0, 99999);
document.execCommand("copy");
Paste into a ref.txt
echo `pbpaste` > list.txt
You have both list.txt
and ref.txt
- Step 2: Match the refs and list.
node match.js;
node extract.js
Just loop over database then fs.writeFileSync..
- Step 4: Compare books with other books. Big O (n^2)
Thankfully Node.js and JS, any loop is parallel executed by default. Does not needed any parallelisation process.
node magic.js
Other staffs are for build CLI :)
Cheers,
Cagatay Cali.