<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shomah4a</author_name>
  <author_url>https://blog.hatena.ne.jp/shomah4a/</author_url>
  <blog_title>プログラマのネタ帳</blog_title>
  <blog_url>https://shomah4a.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>xmlrpc</anon>
  </categories>
  <description>xmlrpclib を proxy 経由で使わなければいけなかったのだが、 xmlrpclib は httplib で通信をしているようで、環境変数の http_proxy を見てくれない。 色々とググってみても、 httplib をそのまま使って proxy を使う方法しか出てこなかった。 今回は proxy だけでなく Basic 認証も行わなければいけないので、なるべくなら urllib2 を使ってリクエストを送りたかった。 なので Transport クラスを継承して urllib2 を使ったリクエストを送るように書き換えてみた。 結果 で、できたのが以下のコード。 xmlrpclib…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshomah4a.hatenadiary.org%2Fentry%2F20100315%2F1268665203&quot; title=&quot; Python の xmlrpclib で proxy + Basic 認証 - プログラマのネタ帳&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>2010-03-15 00:00:03</published>
  <title> Python の xmlrpclib で proxy + Basic 認証</title>
  <type>rich</type>
  <url>https://shomah4a.hatenadiary.org/entry/20100315/1268665203</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
