MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / extract_path_from_link

Function extract_path_from_link

botasaurus/cl.py:260–268  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

258
259
260def extract_path_from_link(link):
261 from urllib.parse import urlparse, urlunparse
262 if isinstance(link, str):
263 parsed = urlparse(link)
264 return str(
265 urlunparse(
266 ("", "", parsed.path, "", "", "")
267 )
268 )
269
270
271def extract_domain_from_link(link):

Callers 2

link_matches_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected