mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
- Introduced a `docs_url` field to the Google Maps reviews, scrape, YouTube comments, YouTube scrape, and web crawl capabilities for improved documentation access. - Simplified descriptions for each capability to enhance clarity and user understanding.
24 lines
922 B
Python
24 lines
922 B
Python
"""``google_maps.scrape`` capability registration (dual-metered: billed per
|
|
place via ``GOOGLE_MAPS_MICROS_PER_PLACE`` plus per attached review via
|
|
``GOOGLE_MAPS_MICROS_PER_REVIEW``)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.capabilities.core import BillingUnit, Capability, register_capability
|
|
from app.capabilities.google_maps.scrape.executor import build_scrape_executor
|
|
from app.capabilities.google_maps.scrape.schemas import ScrapeInput, ScrapeOutput
|
|
|
|
GOOGLE_MAPS_SCRAPE = Capability(
|
|
name="google_maps.scrape",
|
|
description=(
|
|
"Scrape public Google Maps places, details, reviews, and photos. Use "
|
|
"search_queries, urls, or place IDs."
|
|
),
|
|
input_schema=ScrapeInput,
|
|
output_schema=ScrapeOutput,
|
|
executor=build_scrape_executor(),
|
|
billing_unit=BillingUnit.GOOGLE_MAPS_PLACE,
|
|
docs_url="/docs/connectors/native/google-maps",
|
|
)
|
|
|
|
register_capability(GOOGLE_MAPS_SCRAPE)
|