MCPcopy Index your code
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / _is_valid_url

Method _is_valid_url

scrapegraphai/nodes/parse_node.py:207–219  ·  view source on GitHub ↗

CHecks if the URL format is valid. Args: url (str): The URL to check. Returns: bool: True if the URL format is valid, False otherwise

(url: str)

Source from the content-addressed store, hash-verified

205
206 @staticmethod
207 def _is_valid_url(url: str) -> bool:
208 """
209 CHecks if the URL format is valid.
210
211 Args:
212 url (str): The URL to check.
213
214 Returns:
215 bool: True if the URL format is valid, False otherwise
216 """
217 if re.fullmatch(ParseNode.url_pattern, url) is not None:
218 return True
219 return False

Callers 1

_clean_urlsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected