node.js Osmosis get resulsts after compiling js

50 views Asked by At

im trying to get data from site with osmosis, but insted of the value it returns '{{value}}'. here`s my code:

const osmosis = require('osmosis');
osmosis
    .get('#########&fromStationCode=210305&toStationCode=217304')
    .delay(3000)
    .find('td').set('Result')`
    .data(console.log)

at this page values inserted into table via js. i tried to use delay but it didn`t work

1

There are 1 answers

0
Егор Соловьев On

instead osmosis i`ve tried nightmare.js and it works for me