<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Seasons</author_name>
  <author_url>https://blog.hatena.ne.jp/Seasons/</author_url>
  <blog_title>Seasons.NET</blog_title>
  <blog_url>https://seasons.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Git</anon>
  </categories>
  <description>MechanizeというRubyのライブラリがあり、 これがとても便利なんだけどサンプルがややこしいものが多い。 html内のボタン、チェックボックス、テキストボックスを 操作できるうえに、Submitも行う事ができる。 例えば、辞書サイトとかでありがちな翻訳方法として、 URL引数でURLエンコードされた文字列を渡して変換を行う方法がありますが、 文章ともなるとそうもいかない。 なのでテキストエリアに文章つっこんで Submitすることになるんですが、これを使って、 翻訳スクリプトを書いてみました。どう使うかというと、 % ./translate_ej.rb &quot;This is a pen.&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseasons.hateblo.jp%2Fentry%2F20090403%2F1238778103&quot; title=&quot;Mechanizeを使って、英語-&amp;gt;日本語翻訳しちゃうスクリプト書いてみた - Seasons.NET&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>2009-04-03 02:01:43</published>
  <title>Mechanizeを使って、英語-&gt;日本語翻訳しちゃうスクリプト書いてみた</title>
  <type>rich</type>
  <url>https://seasons.hateblo.jp/entry/20090403/1238778103</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
