<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hit10231023</author_name>
  <author_url>https://blog.hatena.ne.jp/hit10231023/</author_url>
  <blog_title>Database JUNKY</blog_title>
  <blog_url>https://hit.hateblo.jp/</blog_url>
  <categories>
    <anon>python3</anon>
    <anon>ディクショナリ</anon>
    <anon>辞書</anon>
    <anon>json</anon>
    <anon>ネスト</anon>
    <anon>階層</anon>
    <anon>get関数</anon>
    <anon>key error</anon>
    <anon>keyerror</anon>
  </categories>
  <description>例えば、下記のようなネスト（階層）があるディクショナリ型の一部要素を参照しようとしていたのですが (略） &quot;datePublished&quot;: &quot;2018-10-11&quot;, &quot;byArtist&quot;: { &quot;@type&quot;: &quot;MusicGroup&quot;, &quot;url&quot;: &quot;https://yyyyy.zzzzzz/us/artist/abcdefg-gambino/466842536&quot;, &quot;name&quot;: &quot;Childish Gambino&quot; } } このnameの要素にアクセスする場合、 _Artist = data['byArtist']['name'] と書いていたのですが、ものによって、このname自体…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhit.hateblo.jp%2Fentry%2Fpython3%2Fdic&quot; title=&quot;python3 ディクショナリ型の要素アクセスで、階層がある要素のkeyerrorを回避する方法 - Database JUNKY&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/h/hit10231023/20180302/20180302202040.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-11 20:47:48</published>
  <title>python3 ディクショナリ型の要素アクセスで、階層がある要素のkeyerrorを回避する方法</title>
  <type>rich</type>
  <url>https://hit.hateblo.jp/entry/python3/dic</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
