Home >Backend Development >PHP Tutorial >How to use php's curl to grab lazy loaded images, please give me some advice

How to use php's curl to grab lazy loaded images, please give me some advice

WBOY
WBOYOriginal
2016-10-17 09:30:001492browse

Crawling image information, but lazy loading can only load part of it. How to crawl all images

Reply content:

Crawling image information, but lazy loading can only load part of it. How to crawl all images

Lazy loading means that when you slide down, the website will request an interface via Ajax again, which is a bit similar to paging. You need to look at the link of his ajax request and then crawl to the corresponding link.

This capture has something to do with how your regular matching is written. curl just simulates a request

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn