I am trying to get only the link from the result of find_all()
Here is my code:
mydivs = soup.find_all("td", {"class": "candidates"})
for link in mydivs:
print(link)
But it returns:
<td class="candidates"><div><a data-tn-element="view-unread-candidates" data-tn-link="true" href="/c#candidates?id=a722443b402&ctx=jobs-tab-view-candidates">56 candidates</a><br/><a data-tn-element="view-unread-candidates" data-tn-link="true" href="/c#candidates?id=a7b2a139b402&candidateFilter=4af15d8991a8"><span class="jobs-u-font--bold">(45 awaiting review)</span></a></div></td>
What I want to get:
/c#candidates?id=a722443b402&ctx=jobs-tab-view-candidates