#!/usr/local/bin/ruby
#test.rb
require 'open-uri'
require "pp"
area = ["https://anond.hatelabo.jp/archive/200609"]
target_url = []
area.each do |l|
OpenURI.open_uri(l).each_line do |l|
if l =~ %r|
.+|
ensen = t.slice(%r|.+|, 1)
target_url << "https://www.chintai.net#{ensen}"
end
end
end
=begin
target_url = []
text.each do |t|
if t =~ %r|.+|
ensen = t.slice(%r|.+|, 1)
target_url << "https://www.chintai.net#{ensen}"
end
end
target_url.each do |u|
puts u
end
=end