OSDN Git Service

moved
[tdcgexplorer/nimono-crawlers.git] / bin / read-upl.rb
1 #!ruby
2 # encoding: utf-8
3 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4 require 'scrap'
5
6 location = ARGV.shift || 'mmd'
7 scrap = Scrap.find_by_location(location)
8
9 ent = "/Volumes/uploader/src/#{location}/index.html"
10 open(ent) do |f|
11   while line = f.gets
12     if scrap.match(line)
13       puts scrap.row.join("\t")
14     end
15   end
16 end