SyntaxFix
Write A Post
Hire A Developer
Questions
print(link_addres.contents[0])
It will print the context of the anchor tags
example:
statement_title = statement.find('h2',class_='briefing-statement__title') statement_title_text = statement_title.a.contents[0]