mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-18 23:11:12 +02:00
refactor(instagram): drop mentions from scrape capability
This commit is contained in:
parent
5cac6612c3
commit
27d22a9a2a
3 changed files with 5 additions and 5 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
"""``instagram.scrape`` verb: Instagram URLs / search terms → posts, reels, mentions."""
|
"""``instagram.scrape`` verb: Instagram URLs / search terms → posts, reels."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ from app.capabilities.instagram.scrape.schemas import ScrapeInput, ScrapeOutput
|
||||||
INSTAGRAM_SCRAPE = Capability(
|
INSTAGRAM_SCRAPE = Capability(
|
||||||
name="instagram.scrape",
|
name="instagram.scrape",
|
||||||
description=(
|
description=(
|
||||||
"Scrape public Instagram posts, reels, or mentions from profile/post/"
|
"Scrape public Instagram posts or reels from profile/post/reel URLs, "
|
||||||
"reel URLs, or discover public profiles via search queries."
|
"or discover public profiles via search queries."
|
||||||
),
|
),
|
||||||
input_schema=ScrapeInput,
|
input_schema=ScrapeInput,
|
||||||
output_schema=ScrapeOutput,
|
output_schema=ScrapeOutput,
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,9 @@ class ScrapeInput(BaseModel):
|
||||||
default="profile",
|
default="profile",
|
||||||
description="Discovery kind (profile-only; hashtag/place are login-walled).",
|
description="Discovery kind (profile-only; hashtag/place are login-walled).",
|
||||||
)
|
)
|
||||||
result_type: Literal["posts", "reels", "mentions"] = Field(
|
result_type: Literal["posts", "reels"] = Field(
|
||||||
default="posts",
|
default="posts",
|
||||||
description="Which feed to return. 'mentions' requires profile URLs.",
|
description="Which feed to return: 'posts' or 'reels'.",
|
||||||
)
|
)
|
||||||
newer_than: str | None = Field(
|
newer_than: str | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue