Sha256: 39f8f195af61a96b68271220a6242454532d6361321ae8b4ec2bb7d0e262dee9

Contents?: true

Size: 226 Bytes

Versions: 19

Compression:

Stored size: 226 Bytes

Contents

require "open-uri"

url = "https://www.aozora.gr.jp/cards/001779/files/56647_58167.html"
filename = "nisendouka.html"

File.open(filename, "wb") do |f|
  text = open(url, "r:shift_jis").read
  f.write text.encode("utf-8")
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.8 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.7 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.6 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.5 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.4 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.3 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.2 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.1 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.2.0 contents/takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.15 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.14 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.13 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.11 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.10 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.9 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.8 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.7 takahashi/sample_prog/final_check/get_nisen.rb
ruby_learner-1.1.6 takahashi/sample_prog/final_check/get_nisen.rb