A simple medium.com post scraper using Axios, and Cheerio.
$3
``bash npm i --save medium-scrape `
$3
Script: `JavaScript const medium = require('medium-scrape'); const link = 'https://medium.com/@nickgrego/step-by-step-guide-for-installing-both-ecdsa-beacon-nodes-on-vps-with-100-voucher-db930ab2a667';
(async() => { try { let post = await medium.get(link); console.log(post); } catch (e) { console.error(e); } })();
`
Output:
`JavaScript { title: 'Step-by-step guide for installing both ECDSA & Beacon Keep Network nodes on VPS with 100$ voucher.', body: [ '
*08/09/2020 all configurations and commands are updated for installing the latest release
', '
This is step by step tutorial for newcomers to launch their first nodes in Keep Network with completely free VPS server and with minimal use of command line. To avoid any sort of errors, we would use the most user-friendly instruments to successfully complete this task fast and without any kind of mistakes.
Script: `JavaScript const medium = require('medium-scrape'); const link = 'https://medium.com/@nickgrego/step-by-step-guide-for-installing-both-ecdsa-beacon-nodes-on-vps-with-100-voucher-db930ab2a667';
`JavaScript { title: 'Step-by-step guide for installing both ECDSA & Beacon Keep Network nodes on VPS with 100$ voucher.', body: [ '
*08/09/2020 all configurations and commands are updated for installing the latest release
', '
This is step by step tutorial for newcomers to launch their first nodes in Keep Network with completely free VPS server and with minimal use of command line. To avoid any sort of errors, we would use the most user-friendly instruments to successfully complete this task fast and without any kind of mistakes.
`JavaScript const medium = require('medium-scrape'); const link = 'https://medium.com/@freidlion/%D0%B5%D0%BA%D0%BE%D0%BD%D0%BE%D0%BC%D1%96%D0%BA%D0%B0-%D1%81%D1%82%D0%B5%D0%B9%D0%BA%D1%96%D0%BD%D0%B3%D0%B0-76b7d9459686';
(async() => { try { let post = await medium.md(link); console.log(post); } catch (e) { console.error(e); } })();
`
$3
`JSON { title: 'tBTC тепер з повністю відкритим кодом', body: 'tBTC тепер з повністю відкритим кодом\n' + '\n' + 'Keep ECDSA, який лежить в основі груп підписувачів, тепер доступний у GitHub. Сюди входять фрагменти, що зберігаються і виключаються з ланцюга ECDSA, а також зберігається в обліковій системі ECDSA для мережі Keep, яка дозволяє створювати та функціонувати групи підписувачів на tBTC.\n' + '\n' + 'tBTC прагне відкритих джерел інформації як найкращого стандарту для прозорості та безпеки DeFi. Цей відкритий канал робить tBTC першим і єдиним мостом BTC, який дозволяє підписувати без дозволу.\n' + '\n' + 'Приєднуйтесь до списку розсилки tBTC, щоб отримати оновлення, включаючи інформацію про майбутній запуск tBTC у мережі Ethereum.\n' + '\n' + 'Додаткові ресурси:\n' + '\n' + '* GitHub\n' + '* Технічні специфікації\n' + '* tbtc.js\n' + '* Keep #tbtc канал у Discord\n' + '\n' + 'Слідкуйте за #tBTC у Twitter, щоб дізнатись про новини та можливості для участі.' } ``