开发者

How to get javascript value using Nokogiri?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜