<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>babydaemons</author_name>
  <author_url>https://blog.hatena.ne.jp/babydaemons/</author_url>
  <blog_title>babydaemons’ blog</blog_title>
  <blog_url>https://babydaemons.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>XML</anon>
    <anon>XPath</anon>
    <anon>Scraping</anon>
  </categories>
  <description>概要 Google Chrome 5.0 betaを騙って、hashtagsjpからつぶやきを取ってきて1行1tweetに変換します。 XPathを使ってるのでとっても見通しが良い実装だと自画自賛ｗはてダに直接張れるHTMLを標準出力に吐き出しますが、cssは出力結果に合わせていぢって下さい。 ソースを晒しておく #!/usr/bin/ruby require 'net/http' require 'rexml/document' include REXML class HashtagsJP attr_reader :timelines HTTP_HEADERS = { 'User-Agent…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabydaemons.hatenablog.com%2Fentry%2F20100421%2Frubyxpath&quot; title=&quot;hashtagsjpをスクレイピングしてはてダ用に変換するスクリプト - babydaemons’ blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-04-21 00:00:00</published>
  <title>hashtagsjpをスクレイピングしてはてダ用に変換するスクリプト</title>
  <type>rich</type>
  <url>https://babydaemons.hatenablog.com/entry/20100421/rubyxpath</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
