Ruby Nokogiri Javascript Parsing
问题 I need to parse an array out of a website. The part of the Javascript I want to parse looks like this: _arPic[0] = "http://example.org/image1.jpg"; _arPic[1] = "http://example.org/image2.jpg"; _arPic[2] = "http://example.org/image3.jpg"; _arPic[3] = "http://example.org/image4.jpg"; _arPic[4] = "http://example.org/image5.jpg"; _arPic[5] = "http://example.org/image6.jpg"; I get the whole javascript by something like that: product_page = Nokogiri::HTML(open(full_url)) product_page.css("div#main