I have a string with multiple ids in the image tag:
<img id="webfast-uhyubv" alt="" data-type="image" id="comp-jefxldtzbalatamediacontentimage" src="http://webfast.co/images/webfast-logo.png" />
soup = bs4.BeautifulSoup(webpage,"html.parser")
images = soup.findAll('img')
for image in images:
print image
The above code only returns id=comp-jefxldtzbalatamediacontentimage
Replacing
soup = bs4.BeautifulSoup(webpage,"html.parser")
with
soup = bs4.BeautifulSoup(webpage,"lxml")
returns the first id webfast-uhyubv
However, I want to get both the id's in the order they exist for the input line.