I am scraping reviews from a website (which I've done before and worked fine) but now, I see if the review includes an image, an additional span tag for the reviewer's name is being scraped. So, if the review includes an image, I get the reviewer's name twice. None of the other content (review title, review content, etc.) is being scraped twice.
I see the additonal tags in the output of: soup = bs(driver.page_source, 'html.parser')
I was expecting one reviewer's name because there is only one review by that user. I am not able to create a file of reviews because the length of the columns (reviewer name, review title, review content, etc.) do not match in length.
What is the best way to ignore the additional tags?
<div class="a-profile-avatar"><img class="a-lazy-loaded" data-src="https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/2dd427f5-f954-4dba-8b20-98be896df084._CR83,0,333,333_SX48_.jpg" src="https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"/><noscript><img src="https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/2dd427f5-f954-4dba-8b20-98be896df084._CR83,0,333,333_SX48_.jpg"/></noscript></div></div><div class="a-profile-content"><span class="a-profile-name">Just Jo</span></div></a></div><div class="a-row"><a class="a-size-base a-link-normal review-title a-color-base review-title-content a-text-bold" data-hook="review-title" href="/gp/customer-reviews/R15O5KMSCX5H4H/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08GJK3KW9"><i class="a-icon a-icon-star a-star-4 review-rating" data-hook="review-star-rating"><span class="a-icon-alt">4.0 out of 5 stars</span></i><span class="a-letter-space"></span>
<span>Seems like a good case</span>
</a></div><span class="a-size-base a-color-secondary review-date" data-hook="review-date">Reviewed in the United States on July 23, 2021</span><div class="a-row a-spacing-mini review-data review-format-strip"><a class="a-link-normal" href="/gp/help/customer/display.html/ref=cm_cr_dp_d_rvw_avp?nodeId=G75XTB7MBMBTXP6W" rel="noopener" target="_blank"><span class="a-size-mini a-color-state a-text-bold" data-hook="avp-badge">Verified Purchase</span></a></div><div class="a-row a-spacing-small review-data"><span class="a-size-base review-text review-text-content" data-hook="review-body">
<span>I got this so my daughter could have a place to keep a toothbrush, bands, and her aligners during lunch at school. Yes, it's much larger than her normal carry case meant just for the aligners, it has to be if you want it to fit a full-sized toothbrush. The magnetic closers seem sturdy and I feel confident it will stay closed in her lunch tote. Will try to update after she's had a chance to use it for a bit.</span>
</span></div><div class="a-popover-preload" id="a-popover-R15O5KMSCX5H4H_gallerySection_main">
<div class="a-section cr-lightbox-popover-container" data-hook="image-popover" id="R15O5KMSCX5H4H_image_popover">
<div class="cr-lightbox-image-viewer">
<div class="cr-lightbox-main-image-container">
<img alt="Customer image" class="cr-lightbox-main-image" src="https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/transparent-pixel._V192234675_.gif"/>
</div>
<div class="cr-lightbox-navigator-container cr-lightbox-navigator-container__back">
<div class="cr-lightbox-navigator-button cr-lightbox-navigator-button__back">
</div>
</div>
<div class="cr-lightbox-navigator-container cr-lightbox-navigator-container__next">
<div class="cr-lightbox-navigator-button cr-lightbox-navigator-button__next">
</div>
</div>
</div>
<div class="a-section cr-lightbox-review-information">
<div class="a-section a-spacing-mini cr-review-stars-and-title">
<div class="a-row a-spacing-mini">
<a class="a-profile cr-lightbox-customer-profile" data-a-size="small" href="/gp/profile/amzn1.account.AHQHUGP5H3BDJ4SBWS6T34N7F2XA/ref=cm_cr_arp_d_gw_pop?ie=UTF8"><div aria-hidden="true" class="a-profile-avatar-wrapper"><div class="a-profile-avatar"><img class="" data-src="https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/2dd427f5-f954-4dba-8b20-98be896df084._CR83,0,333,333_SX48_.jpg" src="https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/2dd427f5-f954-4dba-8b20-98be896df084._CR83,0,333,333_SX48_.jpg" style=""/><noscript><img src="https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/2dd427f5-f954-4dba-8b20-98be896df084._CR83,0,333,333_SX48_.jpg"/></noscript></div></div><div class="a-profile-content"><span class="a-profile-name">Just Jo</span></div></a>
</div>
<i class="a-icon a-icon-star a-star-4 cr-lightbox-review-rating"><span class="a-icon-alt">4.0 out of 5 stars</span></i>
<span class="a-size-base cr-lightbox-review-title a-text-bold">
Seems like a good case
</span>
<br/>
<span class="a-size-small a-color-secondary cr-lightbox-review-origin">