Skip to content

Instantly share code, notes, and snippets.

@jimneath
Created April 17, 2011 19:12
Show Gist options
  • Save jimneath/924371 to your computer and use it in GitHub Desktop.
Save jimneath/924371 to your computer and use it in GitHub Desktop.
module Crawler
class MissSelfridge < Crawler::Base
@queue = :crawl
def self.perform(url, shop_id)
super(url, {
:shop_id => shop_id,
:crawl => /ProductDisplay|CatalogNavigationSearchResultCmd/,
:collect => /ProductDisplay/i,
:skip => /refinements|pageSize=200|pageSize=80/i,
:product_params => %w[catalogId storeId productId]
})
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment