Join Nostr
2026-05-13 03:27:27 UTC

mattn on Nostr: /run rb require "open-uri" require "nokogiri" url = "" html = URI.open(url, ...

/run rb
require "open-uri"
require "nokogiri"

url = "https://fushinsha-joho.co.jp/serif.cgi";
html = URI.open(url, "User-Agent" => "Ruby").read
doc = Nokogiri::HTML(html)

doc.css('a[href*="news.jp"]').each do |a|
puts a.text.strip
end