开发者

How to get javascript value using Nokogiri?

开发者 https://www.devze.com 2023-02-02 05:45 出处:网络
I need to pull out a particular line that is in some inline javascript on a page using nokogiri. How开发者_运维知识库 would I go about doing this?doc.css(\'script\').each do |script|

I need to pull out a particular line that is in some inline javascript on a page using nokogiri. How开发者_运维知识库 would I go about doing this?


doc.css('script').each do |script|
    puts script.content
end
0

精彩评论

暂无评论...
验证码 换一张
取 消