def filter_url(url)
      ids = /id=(\d+)/.match(url)
      return false if ids.to_a.size == 0

      id = ids.to_a.last
      if url.include? 'tmall'
        url = "http://detail.tmall.com/item.htm?id=#{id}"
        @init_url = 'http://www.tmall.com'
      else
        url = "http://item.taobao.com/item.htm?id=#{id}"
        @init_url = 'http://www.taobao.com'
      end

      {:url => url,:id => id}
    end
def filter_url(url)
      ids = /id=(\d+)/.match(url)
      return false if ids.to_a.size == 0

      id = ids.to_a.last
      if url.include? 'tmall'
        url = "http://detail.tmall.com/item.htm?id=#{id}"
        @init_url = 'http://www.tmall.com'
      else
        url = "http://item.taobao.com/item.htm?id=#{id}"
        @init_url = 'http://www.taobao.com'
      end

      {:url => url,:id => id}
    end
过滤url得到产品hash