<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ctrlshift</author_name>
  <author_url>https://blog.hatena.ne.jp/ctrlshift/</author_url>
  <blog_title>ctrlshiftの日記</blog_title>
  <blog_url>https://ctrlshift.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>以前、こちらの記事で「PythonでTinyURLを作成するスクリプト」を作成したので、最近人気の「bit.ly」でも短いURLを作成するスクリプトを作成しました。 bit.ly, a simple url shortener 「TinyURL」から短いURLを手に入れる場合は、特定のURLにパラメータを付けるだけで良かったのですが、「bit.ly」の場合はAPIを使うためのアカウントとAPI Keyが必要なようです。また、送信した後のデータ・フォーマットとしては、XML形式とJSON形式を選べまして、今回の例はXML形式を返すようにした場合のスクリプトになります。 #!/usr/bin/ev…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fctrlshift.hatenadiary.org%2Fentry%2F20090822%2F1250944870&quot; title=&quot;Pythonでbit.lyの短いURLを作成するスクリプト - ctrlshiftの日記&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://screenshot.hatena.ne.jp/images/200x150/c/7/0/7/e/e5a2fe0a4d094d41e2f0894aff1023159de.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-08-22 21:41:10</published>
  <title>Pythonでbit.lyの短いURLを作成するスクリプト</title>
  <type>rich</type>
  <url>https://ctrlshift.hatenadiary.org/entry/20090822/1250944870</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
