Python and BeautifulSoup4's BS4's Decompose Method To Remove Unwanted Inner Tags
< a href="/Products/MX72244">
< span class="c-shca-icon-item__body-name-brand">
< / span>
XPG SX8200 PCI - E 3.0 x4 M .2 NVMe SSD, 480 GB
< / a>
The problem in the html above is that there is a "span" inside the "a" and this is unusual except for a few products with ADATA.
Otherwise it would print out ADATA with the other product information "XPG SX8200 PCI - E 3.0 x4 M .2 NVMe SSD, 480 GB". So we just want the product info and not the ADATA inside span.
The solution is to use beautifulsoup's "decompose method below".