{"categories":["RUBY"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20070504%2Fp2\" title=\" Yahoo\u691c\u7d22API\u3092Stream Parsing - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" Yahoo\u691c\u7d22API\u3092Stream Parsing","width":"100%","provider_url":"https://hatena.blog","type":"rich","height":"190","author_url":"https://blog.hatena.ne.jp/winebarrel/","url":"https://so-wh.at/entry/20070504/p2","blog_title":"so what","version":"1.0","blog_url":"https://so-wh.at/","author_name":"winebarrel","description":"read_status_line\u306fnet/http\u304b\u3089\u306e\u30d1\u30af\u30ea\u3002 \u3082\u3046\u5c11\u3057\u9ad8\u6c34\u6e96\u306eAPI\u3063\u3066\u306a\u3044\u3082\u3093\u304b\u306a\u3041\u2026\u3068\u601d\u3046\u306e\u306fRuby\u306b\u30b9\u30dd\u30a4\u30eb\u3055\u308c\u3066\u3044\u308b\u305b\u3044\u304b\u3082\u3002 require 'socket' require \"rexml/document\" require \"rexml/streamlistener\" def send_get(path, sock) sock.write(\"GET #{path} HTTP/1.0\\n\\n\") end def read_status_line(sock) l = sock.readline m = /\\AHTTP(?:\\/(\\d+\\.\\d+))?\\s+(\\d\\\u2026","image_url":null,"provider_name":"Hatena Blog","published":"2007-05-04 00:00:00"}