mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-16 23:01:06 +02:00
feat: bumped version to 0.0.32
This commit is contained in:
parent
1bc7d9f51c
commit
1131da5ed7
55 changed files with 496 additions and 159 deletions
|
|
@ -41,7 +41,9 @@ def register(
|
|||
list[str] | None,
|
||||
Field(
|
||||
description="Terms to discover public profiles for (resolved via "
|
||||
"Google). Provide search_queries OR urls."
|
||||
"Google). Google-backed discovery is slow (~30-60s per query), so "
|
||||
"start with at most 3 queries and expand only if nothing "
|
||||
"significant is found. Provide search_queries OR urls."
|
||||
),
|
||||
] = None,
|
||||
search_type: Annotated[
|
||||
|
|
@ -100,7 +102,9 @@ def register(
|
|||
search_queries: Annotated[
|
||||
list[str] | None,
|
||||
Field(
|
||||
description="Terms to discover public profiles for. Provide "
|
||||
description="Terms to discover public profiles for. Google-backed "
|
||||
"discovery is slow (~30-60s per query), so start with at most 3 "
|
||||
"queries and expand only if nothing significant is found. Provide "
|
||||
"search_queries OR urls."
|
||||
),
|
||||
] = None,
|
||||
|
|
|
|||
|
|
@ -52,9 +52,11 @@ def register(
|
|||
search_queries: Annotated[
|
||||
list[str] | None,
|
||||
Field(
|
||||
description="Keyword search terms. Returns no videos — use "
|
||||
"hashtags/profiles/urls for videos, or the user-search tool for "
|
||||
"accounts."
|
||||
description="Keyword search terms, resolved via Google to public "
|
||||
"TikTok videos (TikTok's own keyword search is login-walled). "
|
||||
"Slower than hashtags/urls, so start with at most 3 queries and "
|
||||
"expand only if nothing significant is found. For accounts by "
|
||||
"keyword use surfsense_tiktok_user_search."
|
||||
),
|
||||
] = None,
|
||||
results_per_page: Annotated[
|
||||
|
|
@ -67,13 +69,15 @@ def register(
|
|||
workspace: WorkspaceParam = None,
|
||||
response_format: ResponseFormatParam = "markdown",
|
||||
) -> str:
|
||||
"""Scrape public TikTok videos by hashtag, profile, or URL.
|
||||
"""Scrape public TikTok videos by hashtag, profile, URL, or keyword.
|
||||
|
||||
Use for TikTok video research — a creator's videos, a hashtag feed, or a
|
||||
specific video/profile/hashtag URL — instead of a generic web search.
|
||||
Returns videos with text, author, stats, music, and the web URL. For
|
||||
accounts by keyword use the user-search tool; keyword search returns no
|
||||
videos. Example: hashtags=['food'], max_items=20.
|
||||
search_queries also finds videos on a topic (resolved via Google), but is
|
||||
slower: start with at most 3 queries and expand only if nothing
|
||||
significant is found. Returns videos with text, author, stats, music, and
|
||||
the web URL. For accounts by keyword use surfsense_tiktok_user_search.
|
||||
Example: hashtags=['food'], max_items=20.
|
||||
"""
|
||||
return await run_scraper(
|
||||
client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue