scrapy - python 爬取 js 网页
巴扎黑
巴扎黑 2017-04-18 09:21:58
0
2
197

最近遇到了一个网页
https://cn.bing.com/knows/sea...

我用selenium的webdriver.PhantomJS还是无法获取网页中热门电影的图片

html源文件是p,是通过js改为img的,这个改后img标签始终获取不到

我可以通过原始p获取到图片地址,但是我想通过js生成的代码找到图片地址

求老司机指路

巴扎黑
巴扎黑

reply all (2)
Ty80

Using selenium will consume a lot of resources. . .
It is recommended to analyze its data packet, send a request, and return json for analysis, which is more convenient.

http://30daydo.com/article/4

    刘奇

    It doesn’t have to be difficult to climb,
    Douban’s API is so simple.

    https://api.douban.com/v2/movie/search?q=%E5%88%98%E5%BE%B7%E5%8D%8E
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!