Merge pull request #6 from thaitien280401-stack/copilot/task-271128961-1202814018-01bd4041-c000-4b8f-8c14-22924c672c7c

Change default content source from 'user' to 'trending'
pull/2482/head
Truc Phan Dang Thien 2 days ago committed by GitHub
commit fa65b3e783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1344,7 +1344,7 @@ def get_threads_posts(POST_ID: str = None) -> dict:
max_comment_length = int(thread_config.get("max_comment_length", 500))
min_comment_length = int(thread_config.get("min_comment_length", 1))
min_comments = int(thread_config.get("min_comments", 5))
source = thread_config.get("source", "user")
source = thread_config.get("source", "trending")
print_step("Đang lấy nội dung từ Threads...")

@ -5,7 +5,7 @@ access_token = { optional = false, nmin = 10, explanation = "Threads API access
user_id = { optional = false, nmin = 1, explanation = "Threads user ID của bạn", example = "12345678" }
[threads.thread]
source = { optional = true, default = "user", options = ["user", "trending", "google_trends"], explanation = "Nguồn lấy bài viết: 'user' (từ user cụ thể), 'trending' (từ Trending now), hoặc 'google_trends' (từ khóa Google Trends). Mặc định: user", example = "user" }
source = { optional = true, default = "trending", options = ["user", "trending", "google_trends"], explanation = "Nguồn lấy bài viết: 'trending' (từ Trending now - mặc định), 'google_trends' (từ khóa Google Trends), hoặc 'user' (từ user cụ thể)", example = "trending" }
target_user_id = { optional = true, default = "", explanation = "ID user muốn lấy threads. Để trống dùng user của bạn. Chỉ dùng khi source = 'user'.", example = "87654321" }
post_id = { optional = true, default = "", explanation = "ID cụ thể của thread. Để trống để tự động chọn.", example = "18050000000000000" }
keywords = { optional = true, default = "", type = "str", explanation = "Từ khóa lọc threads, phân cách bằng dấu phẩy.", example = "viral, trending, hài hước" }

Loading…
Cancel
Save