redfox-python-sdk 0.7.2__tar.gz → 0.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/PKG-INFO +1 -1
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/__init__.py +1 -1
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/xiaohongshu.py +15 -6
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/PKG-INFO +1 -1
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/setup.py +1 -1
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/README.md +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/client.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/__init__.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/ai_search.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/autohome.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/baijiahao.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/bilibili.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/dongchedi.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/doubao_image.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/doubao_video.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/douyin.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/gpt_image.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/hotspot.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/instagram.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/kuaishou.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/tiktok.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/tools.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/toutiao.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/twitter.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/wechat.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/wechat_channels.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/weibo.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/yiche.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/youtube.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/endpoints/zhihu.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox/exceptions.py +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/requires.txt +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/top_level.txt +0 -0
- {redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/setup.cfg +0 -0
|
@@ -205,8 +205,15 @@ class XiaohongshuAPI:
|
|
|
205
205
|
:param task_id: 任务 ID(由 comment_submit 返回)
|
|
206
206
|
:return: 评论结果字典
|
|
207
207
|
"""
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
# /story/api/xhs/commentResult 是全平台唯一不从 JSON body 读 taskId 的 result
|
|
209
|
+
# 端点(只认 query/form),故同时用 query 参数与 body 传 taskId:query 保证当前
|
|
210
|
+
# 可用,body 兼容服务端日后改回 JSON body 的一致契约。
|
|
211
|
+
return self._client.request(
|
|
212
|
+
"POST",
|
|
213
|
+
"/story/api/xhs/commentResult",
|
|
214
|
+
params={"taskId": task_id},
|
|
215
|
+
data={"taskId": task_id},
|
|
216
|
+
source=source,
|
|
210
217
|
)
|
|
211
218
|
|
|
212
219
|
# ─── 榜单 ───────────────────────────────────────────
|
|
@@ -304,13 +311,15 @@ class XiaohongshuAPI:
|
|
|
304
311
|
"""
|
|
305
312
|
小红书黑马爆文榜
|
|
306
313
|
|
|
307
|
-
:param category:
|
|
308
|
-
|
|
309
|
-
:
|
|
314
|
+
:param category: 分类(必填),取值如 综合全部、出行代步、医疗保健、
|
|
315
|
+
时尚穿搭、美味佳肴 等中文分类名
|
|
316
|
+
:param start_date: 榜单日期,格式 yyyy-MM-dd(必填),最长为最近 30 天;
|
|
317
|
+
后端字段为 rankDate
|
|
318
|
+
:return: 黑马爆文榜列表
|
|
310
319
|
"""
|
|
311
320
|
return self._client.post(
|
|
312
321
|
"/story/api/cozeSkill/getLowPowderExplosiveArticle",
|
|
313
|
-
data={"category": category, "
|
|
322
|
+
data={"category": category, "rankDate": start_date},
|
|
314
323
|
source=source,
|
|
315
324
|
)
|
|
316
325
|
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="redfox-python-sdk",
|
|
5
|
-
version="0.7.
|
|
5
|
+
version="0.7.4",
|
|
6
6
|
description="RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置",
|
|
7
7
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.7.2 → redfox_python_sdk-0.7.4}/redfox_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|