Скрейпинг библиотека для iframe формы ТФОМС РС(Я)
- Установить с помощью
npm
npm install oms-scraper
- Подключить модуль и вызвать метод
const app = require('oms-scraper');
const url = 'http://oms.sakhanet.ru:81/webpoisk/';
const formData = {
surname: 'Фамилия',
name: 'Имя',
patronymic: 'Отчество',
birthDate: '18.08.1991' // Дата рождения
};
app(url, formData)
.then(r => { console.log(r); })
.catch(e => { console.error(e); });
- ???????
- PROFIT