<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aquarickn</author_name>
  <author_url>https://blog.hatena.ne.jp/aquarickn/</author_url>
  <blog_title>DailyDiaryCron</blog_title>
  <blog_url>https://aquari.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>scrapy shell を使ってスクレイピングしていると、実際にアクセスした画像URLをコピペして開くのが面倒だったので、コンソールから今どの画像を見ているのかを知りたくなった。 ダウンロードして開く 当たり前かもしれないが、ローカルで画像を開く場合、一度ダウンロードする必要があった。 $ scrapy shell fetch('http://yahoo.co.jp') import requests import io from PIL import Image Image.open(io.BytesIO(requests.get(response.css('img::attr(src)'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faquari.hatenablog.jp%2Fentry%2F2017%2F11%2F19%2F170209&quot; title=&quot;Scrapy shell で画像を表示するデバッグ方法 - DailyDiaryCron&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>2017-11-19 17:02:09</published>
  <title>Scrapy shell で画像を表示するデバッグ方法</title>
  <type>rich</type>
  <url>https://aquari.hatenablog.jp/entry/2017/11/19/170209</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
