find_all_links() — langchain Function Reference
Architecture documentation for the find_all_links() function in html.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8806546c_d4c5_b816_1799_3f83f54ae6a2["find_all_links()"] a747c9e4_9d35_6376_2a05_6e094efb6182["html.py"] 8806546c_d4c5_b816_1799_3f83f54ae6a2 -->|defined in| a747c9e4_9d35_6376_2a05_6e094efb6182 71aa6dfa_b9f9_971f_66bf_e7e11e97ead6["extract_sub_links()"] 71aa6dfa_b9f9_971f_66bf_e7e11e97ead6 -->|calls| 8806546c_d4c5_b816_1799_3f83f54ae6a2 style 8806546c_d4c5_b816_1799_3f83f54ae6a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/utils/html.py lines 46–59
def find_all_links(
raw_html: str, *, pattern: str | re.Pattern | None = None
) -> list[str]:
"""Extract all links from a raw HTML string.
Args:
raw_html: original HTML.
pattern: Regex to use for extracting links from raw HTML.
Returns:
A list of all links found in the HTML.
"""
pattern = pattern or DEFAULT_LINK_REGEX
return list(set(re.findall(pattern, raw_html)))
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does find_all_links() do?
find_all_links() is a function in the langchain codebase, defined in libs/core/langchain_core/utils/html.py.
Where is find_all_links() defined?
find_all_links() is defined in libs/core/langchain_core/utils/html.py at line 46.
What calls find_all_links()?
find_all_links() is called by 1 function(s): extract_sub_links.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free