KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to use beautiful soup to parse html and find all href with a specific anchor tag <a href="http://example.com">TEXT</a> <a href="http://example.com/link">TEXT</a> <a href="http://example.com/page">TEXT</a> all the links I am looking for have the exact same anchor text, in this case TEXT. I am NOT looking for the word TEXT, I want to use the word TEXT to find all the different HREF. For clarification looking for something similar to using the class to parse for the links <a href="http://example.com" class="visible">TEXT</a> <a href="http://example.com/link" class="visible">TEXT</a> <a href="http://example.com/page" class="visible">TEXT</a> and then using findAll('a', 'visible') except the HTML I am parsing doesn't have a class but always the same anchor text.
Tags (comma-separated)
Save Edits
Cancel