MCPcopy Create free account
hub / github.com/Alibaba-NLP/DeepResearch / process_url

Function process_url

WebAgent/WebWalker/src/utils.py:5–14  ·  view source on GitHub ↗

Args: url (str): url sub_url (str): sub_url Returns: str: the processed url

(url, sub_url)

Source from the content-addressed store, hash-verified

3import re
4
5def process_url(url, sub_url):
6 """
7 Args:
8 url (str): url
9 sub_url (str): sub_url
10
11 Returns:
12 str: the processed url
13 """
14 return urllib.parse.urljoin(url, sub_url)
15
16
17def clean_markdown(res):

Callers 1

extract_links_with_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected