$doc = new DOMDocument();
$doc->loadHTML('Your URL');
$imageTags = $doc->getElementsByTagName('img');
foreach($imageTags as $tag) {
$img_src= $tag->getAttribute('src');
}
By this we can get all the image tag in the particular URL, you can write separate scripts for Image types too.
No comments:
Post a Comment