<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suganoo</author_name>
  <author_url>https://blog.hatena.ne.jp/suganoo/</author_url>
  <blog_title>S氏はたまにblogを更新してます</blog_title>
  <blog_url>https://blog.suganoo.net/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>ホスト名の取得方法はいくつかあるようです。 下記で簡単に取得できます。 ホスト名を取得 ホスト名はどこからとってるのかなと調べてたら こんなpythonの実行もあるのか！ github.com python 実行する時に -c でスクリプトを実行できるんですね。 これは便利かも。 [root@hermes ~]# python -c 'import socket; print socket.getfqdn()' localhost.localdomain [root@hermes ~]# python -c 'import socket; print socket.gethostname()'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.suganoo.net%2Fentry%2F2017%2F10%2F26%2F184612&quot; title=&quot;pythonでホスト名を取得する。 - S氏はたまにblogを更新してます&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://images-fe.ssl-images-amazon.com/images/I/51nKA4MQvQL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-26 18:46:12</published>
  <title>pythonでホスト名を取得する。</title>
  <type>rich</type>
  <url>https://blog.suganoo.net/entry/2017/10/26/184612</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
