【问题标题】:scrapy javascript with spalsh wont render page带有飞溅的scrapy javascript不会呈现页面
【发布时间】:2021-03-23 12:09:28
【问题描述】:

我想爬this page,我跟着this post爬了它,但它没有呈现网页。
我该如何解决?
我用这个:

scrapy shell 'http://localhost:8050/render.html?url=https://shenoto.com/album
/46321?lang=en&timeout=10&wait=0.5'

很简单

response.body

但它没有呈现页面。并在页面中仅显示 javascripts。
实际上我想抓取该网站的“application/ld+json”部分,如下图所示。

image

最好的问候

【问题讨论】:

    标签: javascript python scrapy scrapy-splash


    【解决方案1】:

    我找到了this post 并修复了渲染问题。

    this post 加载ld-json。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-28
      • 1970-01-01
      • 2018-02-13
      相关资源
      最近更新 更多