Matured such a question. Just started to learn python using the BeautifulSoup
library wondered. There is HTML code, for example:
<a> <img src="/uploads/201103/thumb-img/MY-520-Nebulizer-Atomized-Inhaler-thumb-G-44318.jpg" width="42" height="42" imgb="uploads/201103/goods-img/MY-520-Nebulizer-Atomized-Inhaler-G-mid-44318.jpg" alt="MY-520 Portable Ultrasonic Nebulizer Atomized Inhaler 520" bigimg="/uploads/201103/source-img/MY-520-Nebulizer-Atomized-Inhaler-G-44318.jpg" /> </a> <a> <img src="/uploads/201103/thumb-img/MY-520-Nebulizer-Atomized-Inhaler1298912536346-thumb-P-44318.jpg" alt="MY-520 Portable Ultrasonic Nebulizer Atomized Inhaler 520" imgb="/uploads/201103/goods-img/MY-520-Nebulizer-Atomized-Inhaler1298912536380-P-44318.jpg" width="42" height="42" bigimg="/uploads/201103/source-img/MY-520-Nebulizer-Atomized-Inhaler1298912536529-P-44318.jpg" /> </a>
I need to pull out all the links to large images that are in the bigimg=
attribute.
I wrote this line:
itemImages = soup.find("div", "scrollableDiv").findAll("img")
But how to pull out ALL the values of the bigimg
attribute bigimg
can not imagine. Maybe someone faced a similar problem, I will be grateful.