MCPcopy Create free account
hub / github.com/apify/crawlee-python / try_common_names

Method try_common_names

src/crawlee/_utils/sitemap.py:430–433  ·  view source on GitHub ↗
(cls, url: str, http_client: HttpClient, proxy_info: ProxyInfo | None = None)

Source from the content-addressed store, hash-verified

428
429 @classmethod
430 async def try_common_names(cls, url: str, http_client: HttpClient, proxy_info: ProxyInfo | None = None) -> Sitemap:
431 base_url = URL(url)
432 sitemap_urls = [str(base_url.with_path(path)) for path in COMMON_SITEMAP_PATHS]
433 return await cls.load(sitemap_urls, http_client, proxy_info)
434
435 @classmethod
436 async def load(

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected