mistical2008 / node-download-callrec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rostelecom call records downloader

Implementation details

  • dotenv for credentials
  • cheerio for DOM manipulation
  • node-fetch or axios for url fetching

Links:

Dev notes:

  • Get all user links: [ ...document.querySelectorAll(".record-table tbody a.dashed.black")].map(link => link.href)
  • Get all dates from page:
[ ...document.querySelectorAll("#datatables tbody tr")].map(row => {
    const datetime = row.cells[1].innerText;
    const time = datetime.slice(-5);
    const date = datetime.slice(0,8);
    return `${date} ${time}`
})

About