how to get ALL text and images from a webpage ? #40
-
hi, Is there anyway to do this ? The thing i dont want to do is tie it to the structure of a particular webpage. It should work on any page html |
Beta Was this translation helpful? Give feedback.
Answered by
tusharojha
Apr 5, 2021
Replies: 1 comment 3 replies
-
Hi Sandeep! final images = webScraper.getElementAttribute("img", 'src');
images.forEach((link) => print(link)); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
tusharojha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Sandeep!
You do this easily using getElementAttribute method. Check the following example for images: