redfox-python-sdk 0.6.0__py3-none-any.whl → 0.7.0__py3-none-any.whl

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/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  from .client import RedFoxClient, AsyncRedFoxClient
4
4
  from .exceptions import RedFoxAPIError, RedFoxAuthError, RedFoxRateLimitError
5
5
 
6
- __version__ = "0.6.0"
6
+ __version__ = "0.7.0"
7
7
  __all__ = [
8
8
  "RedFoxClient",
9
9
  "AsyncRedFoxClient",
@@ -300,17 +300,17 @@ class XiaohongshuAPI:
300
300
  data["endDate"] = end_date
301
301
  return self._client.post("/story/api/xhs/search/search", data=data, source=source)
302
302
 
303
- def get_dark_horse_notes(self, keyword: str, start_date: str, source: str = "小红书黑马爆文榜-SDK") -> dict:
303
+ def get_dark_horse_notes(self, category: str, start_date: str, source: str = "小红书黑马爆文榜-SDK") -> dict:
304
304
  """
305
305
  小红书黑马爆文榜
306
306
 
307
- :param keyword: 关键词(必填),多个关键词用逗号分隔,最多 5 个,总长度不超过 200
307
+ :param category: 分类(必填)
308
308
  :param start_date: 开始日期,格式 yyyy-MM-dd(必填),最长为最近 30 天,默认 30 天前
309
309
  :return: 黑马爆文榜字典
310
310
  """
311
311
  return self._client.post(
312
312
  "/story/api/cozeSkill/getLowPowderExplosiveArticle",
313
- data={"keyword": keyword, "startDate": start_date},
313
+ data={"category": category, "startDate": start_date},
314
314
  source=source,
315
315
  )
316
316
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: redfox-python-sdk
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
5
5
  Home-page: https://redfox.hk
6
6
  Author: RedFox
@@ -241,7 +241,7 @@ client.xiaohongshu.get_daily_hot_rank(rank_date="2026-08-20", category="综合
241
241
  client.xiaohongshu.get_weekly_hot_rank(rank_date="2026-08-20", category="综合全部")
242
242
  client.xiaohongshu.get_hot_accounts(date_type=1, rank_date="2026-08-20", type="综合全部")
243
243
  client.xiaohongshu.search_hot_notes(keyword="穿搭", start_date="2026-08-01", end_date="2026-08-20")
244
- client.xiaohongshu.get_dark_horse_notes(keyword="AI,穿搭", start_date="2026-08-01")
244
+ client.xiaohongshu.get_dark_horse_notes(category="美妆", start_date="2026-08-01")
245
245
 
246
246
  # ─── 视频提文案 ───
247
247
  task = client.xiaohongshu.transcript_submit(url="https://www.xiaohongshu.com/explore/xxx")
@@ -1,4 +1,4 @@
1
- redfox/__init__.py,sha256=MsFyIW8kiFyIKvqPNWbgv7fWaRa7WX4Uj9TFl4G8yfc,348
1
+ redfox/__init__.py,sha256=kmK3rKRknhPoCrZz3BkaHaMYjfD3zte6vTVV5tL2xzo,348
2
2
  redfox/client.py,sha256=b9azvZEkme8AxDyULQWDkqU4sRzqTYbdZxdFD9vrcpQ,22145
3
3
  redfox/exceptions.py,sha256=QWosa7FXJbxNPenMx1CRIPj7z8SFmmtg2_8Qjzika1E,668
4
4
  redfox/endpoints/__init__.py,sha256=sjtHfb6bkX_wdd_ryRajkPrBRnno2HMiwys0DcNIqSA,19
@@ -21,11 +21,11 @@ redfox/endpoints/twitter.py,sha256=-oHX4jQYDmf_2p1GK3cCacLR1rq2OeHcmbq4hCR-PAw,5
21
21
  redfox/endpoints/wechat.py,sha256=Rc3uG4kC1gcFW3rKfeHT6BxZCx4U_A1KXLcWPE7DYGE,13083
22
22
  redfox/endpoints/wechat_channels.py,sha256=caedmf85EsbCebVuvIEecavy6kPrVqkeBmSu_Y_zJ0Q,4798
23
23
  redfox/endpoints/weibo.py,sha256=s9feBGEN9hEsh9CL1Po_qx04auLlfw4P1nnTtutQwOU,1514
24
- redfox/endpoints/xiaohongshu.py,sha256=rByN58-s_8lOwQ2eFTauTijRs5juvi1qIEE5XrQVYD8,12791
24
+ redfox/endpoints/xiaohongshu.py,sha256=WPf8hLtIJNguG7VgRZ_EQ_OdlsDAX1fy26j2Scv5xUw,12719
25
25
  redfox/endpoints/yiche.py,sha256=x3oN1NQesm9mQ1-T-GMbBNNaPg1KtB0_rwmmVdQqVXg,3139
26
26
  redfox/endpoints/youtube.py,sha256=H7nwavR73onVeXpXyRw5Fw8nW_8q_ar4RjTP_a6yftA,4461
27
27
  redfox/endpoints/zhihu.py,sha256=lLPYMv_HpA7L9B8LIrCB_TSUQ7AJzSld6MwfWNuHZxg,1466
28
- redfox_python_sdk-0.6.0.dist-info/METADATA,sha256=tmNtZFsheeXBRt6yxDxd86Uzna-87UrVS6hIPg4m1WM,25328
29
- redfox_python_sdk-0.6.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
30
- redfox_python_sdk-0.6.0.dist-info/top_level.txt,sha256=cOIfFv-M-TaEjpiRQy-OygdvvuHeZrlQSoRWMj0DaEM,7
31
- redfox_python_sdk-0.6.0.dist-info/RECORD,,
28
+ redfox_python_sdk-0.7.0.dist-info/METADATA,sha256=ktUIfpRfLYf2m7dgftDu_ht0ncUDWCKy115GrDaj88M,25326
29
+ redfox_python_sdk-0.7.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
30
+ redfox_python_sdk-0.7.0.dist-info/top_level.txt,sha256=cOIfFv-M-TaEjpiRQy-OygdvvuHeZrlQSoRWMj0DaEM,7
31
+ redfox_python_sdk-0.7.0.dist-info/RECORD,,