Home  >  Q&A  >  body text

python - Questions about crawling images?

Current crawlers generally parse images from html, but the problem is that some image paths are written in js. How to climb this?
I know that you can view the pictures inside the source by opening the f12 point in the browser, but how do you use a crawler to crawl out the resources in the source?

我想大声告诉你我想大声告诉你2669 days ago993

reply all(2)I'll reply

  • 三叔

    三叔2017-06-28 09:27:40

    In fact, whether it is written in html or js, the url of the image should be able to be obtained through regular expressions. The details are similar to my other answer. You can refer to the following: /q/10...

    reply
    0
  • PHP中文网

    PHP中文网2017-06-28 09:27:40

    You can use the automated testing tool Selenium, please give a link and description

    reply
    0
  • Cancelreply