Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xpath("//pre").text.lines.grep(/loadProduct\(\\"(.+?)"\)/).each do |ctg|
- data[:condition] = "new"
- link = "/#{ctg[/loadProduct\(\\"(.+?)"\)/, 1]}"
- yield request(url: link.gsub(/\\\z/i, "").strip, callback: :parse_category, data: data)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement