U
U
Unoobee2015-08-11 21:06:18
JavaScript
Unoobee, 2015-08-11 21:06:18

How to parse HTML with js block in Ruby on rails?

Tell me how to parse HTML with js block on Ruby on rails?
There is a site with a block in which js is executed, how to get information from this block? I tried Nokogiri , but it only gets bare html, there is no block with the necessary information.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2015-08-11
@Unoobee

Nokogiri is a parser and does not execute JavaScripts.
Google towards execjs

U
Unoobee, 2015-09-09
@Unoobee

Thanks for the advice, the issue was resolved by a series of articles, here is the first Web parsing in Ruby

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question