<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtiit</author_name>
  <author_url>https://blog.hatena.ne.jp/mtiit/</author_url>
  <blog_title>(O+P)ut</blog_title>
  <blog_url>https://www.mtioutput.com/</blog_url>
  <categories>
    <anon>Blog</anon>
  </categories>
  <description>はじめに はてなブログの自動投稿は以下で記事にしましたが 写真投稿も自動で行うことで自動投稿の中に新規画像を入れ込むためにPythonコードでのアップロードをテストしました。 環境情報 # python3.6 --version Python 3.6.3 Pythonコード 以下コードのidにはてなID、api_keyにはてなブログの詳細設定で確認できるAPIキーを入力します。 またFotolife &gt; My fotolife &gt; tmp というフォルダに格納するようにしていますが、それ以外の場所に配置する場合はその部分を修正します。 # -*- coding: utf-8 -*- from …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fhatena-photo-upload&quot; title=&quot;【はてなフォトAPI】ローカルにあるpng画像を指定してアップロードするPythonコード - (O+P)ut&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20190215/20190215214625.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-02 13:13:07</published>
  <title>【はてなフォトAPI】ローカルにあるpng画像を指定してアップロードするPythonコード</title>
  <type>rich</type>
  <url>https://www.mtioutput.com/entry/hatena-photo-upload</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
