<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>pythonでシェルスクリプト</anon>
  </categories>
  <description>Python でURLにアクセスしてファイルを保存するには urlib2 を使うのが手っ取り早い import os import urllib2 file_name = &quot;yahoo.co.jp.html&quot; url = &quot;http://www.yahoo.co.jp&quot; if os.path.exists( file_name ) : try : body = urllib2.urlopen( url ).read() f = open( file_name, &quot;w&quot; ) f.write(body) f.close() except URLError, e: print e exit() pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2014%2F08%2F23%2F000105&quot; title=&quot; URLにアクセス &amp;amp; ファイルを保存する（http get) - それマグで！&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>2014-08-23 00:01:05</published>
  <title> URLにアクセス &amp; ファイルを保存する（http get)</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2014/08/23/000105</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
