Map a URL and return discovered links. Args: url: Root URL to explore search: Optional substring filter for discovered links include_subdomains: Whether to include subdomains ignore_query_parameters: Whether to ignore query parameters when map
(
self,
url: str,
*,
search: Optional[str] = None,
include_subdomains: Optional[bool] = None,
ignore_query_parameters: Optional[bool] = None,
limit: Optional[int] = None,
sitemap: Optional[Literal["only", "include", "skip"]] = None,
timeout: Optional[int] = None,
integration: Optional[str] = None,
location: Optional[Location] = None,
)
| 809 | return self.get_active_crawls() |
| 810 | |
| 811 | def map( |
| 812 | self, |
| 813 | url: str, |
| 814 | *, |
| 815 | search: Optional[str] = None, |
| 816 | include_subdomains: Optional[bool] = None, |
| 817 | ignore_query_parameters: Optional[bool] = None, |
| 818 | limit: Optional[int] = None, |
| 819 | sitemap: Optional[Literal["only", "include", "skip"]] = None, |
| 820 | timeout: Optional[int] = None, |
| 821 | integration: Optional[str] = None, |
| 822 | location: Optional[Location] = None, |
| 823 | ) -> MapData: |
| 824 | """Map a URL and return discovered links. |
| 825 | |
| 826 | Args: |
| 827 | url: Root URL to explore |
| 828 | search: Optional substring filter for discovered links |
| 829 | include_subdomains: Whether to include subdomains |
| 830 | ignore_query_parameters: Whether to ignore query parameters when mapping |
| 831 | limit: Maximum number of links to return |
| 832 | sitemap: Sitemap usage mode ("only" | "include" | "skip") |
| 833 | timeout: Request timeout in milliseconds |
| 834 | |
| 835 | Returns: |
| 836 | MapData containing the discovered links |
| 837 | """ |
| 838 | options = MapOptions( |
| 839 | search=search, |
| 840 | include_subdomains=include_subdomains, |
| 841 | ignore_query_parameters=ignore_query_parameters, |
| 842 | limit=limit, |
| 843 | sitemap=sitemap if sitemap is not None else "include", |
| 844 | timeout=timeout, |
| 845 | integration=integration, |
| 846 | location=location |
| 847 | ) if any(v is not None for v in [search, include_subdomains, ignore_query_parameters, limit, sitemap, timeout, integration, location]) else None |
| 848 | |
| 849 | return map_module.map(self.http_client, url, options) |
| 850 | |
| 851 | def create_monitor( |
| 852 | self, |