Skip to content

Commit

Permalink
Change class name
Browse files Browse the repository at this point in the history
  • Loading branch information
Torq07 committed Feb 13, 2017
1 parent c427421 commit d9fbe6d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/types/old_catalog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def self.grab_third_level_category_links
image:cat_info[:image])
else
cat_url = "#{@url}/#{cat.at('strong').parent['href']}"
p cat_url
category[:products] << wrap_as_product(link:cat_url,product_name:cat.at('strong').text.strip.capitalize)
end
end
Expand All @@ -89,10 +88,6 @@ def self.parse_all_products(categories)
def self.parse_category_products(product_list)
product_list.reject{|e| e[:link].nil?}
.each do |item|
p item[:link]
# @b.goto item[:link]
# sleep 1 until @b.ready_state.eql? "complete"
# page = Nokogiri::HTML.parse(@b.html)
ue = @user_agent_list.sample
page = Nokogiri::HTML(open(item[:link],"User-Agent" => ue ))
image_node = page.css('div#main_cnt_sidebar img').first
Expand Down

0 comments on commit d9fbe6d

Please sign in to comment.