I scraped a list of stocks and appended the items to a list, but doing so also added extra html elements due to my bs4 query.
Here is my reproducible code:
<