<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakurai_youhei</author_name>
  <author_url>https://blog.hatena.ne.jp/sakurai_youhei/</author_url>
  <blog_title>試行錯誤と創意工夫（S!アプリ開発日記＋α）</blog_title>
  <blog_url>https://sakurai-youhei.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>RubyでWebスクレイピングするためのサンプルを読んで。標準ライブラリを使って正規表現で無理矢理に。でも大抵これで不便しないから不思議。 import re, urllib2 model_number = 'L32-V09' res = urllib2.urlopen(&quot;http://kakaku.com/search_results/%s&quot;%model_number) html = re.sub(r&quot;\r{0,1}\n{0,1}&quot;,&quot;&quot;,res.read()) min_price = re.findall(r&quot;item clearfix.*?price clearfix.*?yen.*?&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakurai-youhei.hatenadiary.org%2Fentry%2F20120430%2F1335796432&quot; title=&quot;PythonでWebスクレイピングサンプル - 試行錯誤と創意工夫（S!アプリ開発日記＋α）&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>2012-04-30 23:33:52</published>
  <title>PythonでWebスクレイピングサンプル</title>
  <type>rich</type>
  <url>https://sakurai-youhei.hatenadiary.org/entry/20120430/1335796432</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
