fetch_categories.rb 186 B

12345678
  1. require 'mechanize'
  2. agent = Mechanize.new
  3. page = agent.get('http://pripara.jp/item/collection.html')
  4. page.search('div.localNav li a').each do |category|
  5. p category[:href]
  6. end