Skip to content Skip to sidebar Skip to footer

Parsing Table For A Link

I've been able to isolate a row in a html table using Beautiful Soup in Python 2.7. Been a learning experience, but happy to get that far. Unfortunately I'm a bit stuck on this n

Solution 1:

Locate the input by checking aria-label attribute and get the following a sibling element:

label = soup.find("input", {"aria-label": "Select Report format XLS"})
link = label.find_next_sibling("a", href=True)["href"]

Post a Comment for "Parsing Table For A Link"