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
Published at
2026-05-13 03:27:27 UTCEvent JSON
{
"id": "6434212f4ba38becb5c3f3ff044aa75cffd7773a2b5ddcb47f67cd698b0e0566",
"pubkey": "2c7cc62a697ea3a7826521f3fd34f0cb273693cbe5e9310f35449f43622a5cdc",
"created_at": 1778642847,
"kind": 1,
"tags": [
[
"r",
"https://fushinsha-joho.co.jp/serif.cgi"
]
],
"content": "/run rb\nrequire \"open-uri\"\nrequire \"nokogiri\"\n\nurl = \"https://fushinsha-joho.co.jp/serif.cgi\"\nhtml = URI.open(url, \"User-Agent\" =\u003e \"Ruby\").read\ndoc = Nokogiri::HTML(html)\n\ndoc.css('a[href*=\"news.jp\"]').each do |a|\n puts a.text.strip\nend",
"sig": "012f861ddf195314860a38ddcf9fad849daef9abcf7a3474447ecaff1de825373d4f6465b77d1e919b4bd9a6661ae4e1fb7069d1ade2a5f2f0c7630c1552652a"
}