<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aldente39</author_name>
  <author_url>https://blog.hatena.ne.jp/aldente39/</author_url>
  <blog_title>数値計算とかの備忘録（仮）</blog_title>
  <blog_url>https://aldente39.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>PILで何か遊んでみよう、ということでスクリーンキャプチャをしてみる。 &gt;&gt;&gt; import ImageGrab &gt;&gt;&gt; im = ImageGrab.grab() &gt;&gt;&gt; im.save('capture.png') これだけでカレントディレクトリに capture.png という名のキャプチャされた画像ファイルが生成される。1行目でImageGrabモジュールをインポート 2行目でスクリーンキャプチャ 3行目で保存拡張子は勝手に認識してくれる。ループの中に入れると延々とキャプチャし続けるので、パソコンを貸すときにちょっとした監視に使える・・・かもしれない。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faldente39.hatenadiary.org%2Fentry%2F20110321%2F1300695394&quot; title=&quot;PILでスクリーンキャプチャ - 数値計算とかの備忘録（仮）&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>2011-03-21 17:16:34</published>
  <title>PILでスクリーンキャプチャ</title>
  <type>rich</type>
  <url>https://aldente39.hatenadiary.org/entry/20110321/1300695394</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
