<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minus9d</author_name>
  <author_url>https://blog.hatena.ne.jp/minus9d/</author_url>
  <blog_title>minus9d's diary</blog_title>
  <blog_url>https://minus9d.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>(2019-03-30追記) Windows の文字コードは Python では cp932 - criticablog によると shift_jisx0213 ではなく cp932 を使うべきだそうです。以下の記事は2015-07-30に投稿したものそのままです。 あるウェブページを、Python 3で以下のように読み込もうとしました。 import bs4 import urllib.request def get_soup(url): rawtext = urllib.request.urlopen(url).read() soup = bs4.BeautifulSoup(rawtext…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminus9d.hatenablog.com%2Fentry%2F2015%2F07%2F30%2F225841&quot; title=&quot;shift_jisでUnicodeDecodeErrorが出る場合は、shift_jisx0213でデコードしてみる - minus9d&amp;#39;s diary&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>2015-07-30 22:58:41</published>
  <title>shift_jisでUnicodeDecodeErrorが出る場合は、shift_jisx0213でデコードしてみる</title>
  <type>rich</type>
  <url>https://minus9d.hatenablog.com/entry/2015/07/30/225841</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
