<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bati11</author_name>
  <author_url>https://blog.hatena.ne.jp/bati11/</author_url>
  <blog_title>bati11 の 日記</blog_title>
  <blog_url>https://blog.bati11.info/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>Play</anon>
  </categories>
  <description>Playには、HTTP通信するためのライブラリが用意されてます。 play.api.libs.ws.WS というやつですね。ドキュメントにもある通り、これを使えば時間がかかるであろうHTTP通信を非同期に行うことができます。 http://www.playframework-ja.org/documentation/2.0.4/ScalaWSWS を使ってRSSを取得してみました。 使ったのはPlay2.1.1です。 GETリクエストする 以下のように、GETリクエストできます。結果はFutureで返ってきます。 val rss: Future[ws.Response] = WS.url(&quot;h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.bati11.info%2Fentry%2F2013%2F05%2F25%2F220956&quot; title=&quot;Play Frameworkの WS API でHTTP GETする - bati11 の 日記&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>http://ecx.images-amazon.com/images/I/415CsfYp64L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-25 22:09:56</published>
  <title>Play Frameworkの WS API でHTTP GETする</title>
  <type>rich</type>
  <url>https://blog.bati11.info/entry/2013/05/25/220956</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
