<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>themorthem</author_name>
  <author_url>https://blog.hatena.ne.jp/themorthem/</author_url>
  <blog_title>やつらかやつらだ</blog_title>
  <blog_url>https://themorthem.hatenadiary.org/</blog_url>
  <categories>
    <anon>tech</anon>
  </categories>
  <description>twitterでAPIというとhttpでpollingするAPIを思い浮かべますが、ストリームが流れてくるAPIもあるんですよね。 httpクライアントで一定時間毎に取ってくる、とかもう飽きたので、ストリームをちょっとのぞいてみました。twitterのストリームAPIは流量に応じて何種類か用意されているのですが、一般ユーザーが簡単に使用できるのはspritzerというAPI。これは一秒に3ポストぐらいが流れてくる程度に流量が制限されているので、スクリプト言語でも余裕で処理できてしまう感じ。プロトコル自体はHTTPベースのストリームで、認証もBASIC認証と同じ。違うのはこちらが切断するまでずー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthemorthem.hatenadiary.org%2Fentry%2F20090713%2F1247460763&quot; title=&quot;twitterのストリームAPIが面白そうだったのでちょっとのぞいてみた - やつらかやつらだ&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-07-13 13:52:43</published>
  <title>twitterのストリームAPIが面白そうだったのでちょっとのぞいてみた</title>
  <type>rich</type>
  <url>https://themorthem.hatenadiary.org/entry/20090713/1247460763</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
