def test():
response = get_response(user_status="owned", user=redacted, page_number=1)
soup = BeautifulSoup(response, "html.parser", from_encoding="utf-8")
god_help_me = []
parent = soup.find("div", {"class": "item-icons"})
children = parent.findChildren("span", recursive=False)
for child in children:
if "item-icon" in child.attrs["class"]:
continue;
god_help_me.append(child)
print(child)
So there is supposed to be 90, but kept getting 89 in my algorithm. Consequently, I wanted to know which element did not contain the class "item-icon", and... sigh
<span class="item-icon">
<a class="tbx-tooltip item-root-0 item-category-2" href="/item/218652">
<img alt="Love Live! School Idol Project - Koizumi Hanayo - Nendoroid (#496) (Good Smile Company)" src="https://static.myfigurecollection.net/upload/items/0/218652-5f685.jpg"/>
<meta content="1:218652" name="vars"/>
</a>
</span>``