php - Xpath get video tag fallback image
one text
I'm working on some Xpath for website scraping, but need to get the image from a video tag.
I'm working in PHP and using Atrox\Matcher for the retrieving of data.
I currently have this code:
//div[@class="drop-body"]/video/*/@src
But this only gets the video src. Is there a way to get the fallback image with xPath?
This is the code I'm trying to scrape:
<video autoplay="" muted="" playsinline="" loop="">
<source src="*" type="video/webm">
<source src="*" type="video/mp4">
<img src="*" title="Your browser does not support the <video> tag">
</video>
Source