LoginSignup
2
3

More than 5 years have passed since last update.

Scrapyの取得結果をブラウザで開く

Posted at

open_in_browserを使用すると、取得結果をブラウザで開いてくれる。
って、公式ドキュメントに普通に書いてあった。

from scrapy.utils.response import open_in_browser

def parse_details(self, response):
    if "item name" not in response.body:
        open_in_browser(response)

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3