2019-08-09から1日間の記事一覧
今更感が凄まじいが、もうタイトル通り。 バッチで処理する。 require 'nokogiri' html = open(ARGV[0]) {|f| f.read } doc = Nokogiri::HTML.parse(html, nil, 'utf-8') title = doc.title.gsub(/(\r\n|\r|\n)/, "") fileName = nil published = nil doc.cs…
今更感が凄まじいが、もうタイトル通り。 バッチで処理する。 require 'nokogiri' html = open(ARGV[0]) {|f| f.read } doc = Nokogiri::HTML.parse(html, nil, 'utf-8') title = doc.title.gsub(/(\r\n|\r|\n)/, "") fileName = nil published = nil doc.cs…