Rails javascript parsing question!

Asked 2 years ago, Updated 2 years ago, 151 views

Hello! I'm curling using nokogirigem I want to get values that only exist in JavaScript variables. I'm not making any progress knowing if there's a separate access statement or if I have to use Jem. ㅠ<

ruby javascript ruby-on-rails nokogiri

2022-09-21 16:24

1 Answers

nokogiri is a Gem that parses XML.

Javscript content can only be accessed by Source Code (simple text), and in a general way, it is not possible except for simple text parsing.

If you use the headless browser in the link below, you can access the dom value that changed after JS was executed.

http://phantomjs.org/


2022-09-21 16:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.