Nov-22-2018, 02:52 PM
(This post was last modified: Nov-22-2018, 03:13 PM by Broadsworde.)
Thank you Larz.
I did try:
Which happened to be a <img class="this and that"
and
...and
I did try:
test = soup.find('img', {'class': 'this'})But that returned just the first instance of <img class="this
Which happened to be a <img class="this and that"
and
test = soup.find_all('img', {'class': 'this'}) [python] returns all img tags with class="this" and class="this and that" [hr] and [python] test = soup.find_all('img', {'class': 'this'})returns all img tags with class="this" and class="this and that"
...and
test = soup.find_all('img', {'class': 'this'})returns all img tags with class="this" and class="this and that"