Parse Category from Shopee
- Install packages
$ gem install shopee
- Run
$ shopee_titles
- Usage
require 'shopee_scrap'
scraper = ShopeeTileScrape::ShopeeTile.new
category_arr = JSON.parse(scraper.titles)
category_arr.each do |hash|
puts "#{hash['title']} "
end
- Expected output
女生衣著
男生衣著
女生包包與配件
男生包包與配件
女鞋
男鞋
3C相關
手機平板與周邊
居家生活
娛樂、收藏
代買代購
服務、票券
化妝、保養品
嬰幼童與母親
美食、伴手禮
寵物
戶外、**
家電影音
電玩遊戲相關
其他類別