Skip to content

V1.12.4

Compare
Choose a tag to compare
@Evil0ctal Evil0ctal released this 10 Aug 04:16
· 15 commits to main since this release

SDK V1.12.4 Release Notes:

[中文]

支持异步上下文自动管理:

这些代码用于实现异步上下文管理器,使得类的实例可以与 async with 语句一起使用,从而在进入和退出时自动处理资源的初始化和清理。

例如:

async with Client(api_key=api_key) as client:
    pass

这样在退出时会自动调用 aexit 方法,关闭 client。

[English]

Support for automatic asynchronous context management:

These codes are used to implement an asynchronous context manager so that instances of the class can be used with async with statements to automatically handle resource initialization and cleanup on entry and exit.

For example:

async with Client(api_key=api_key) as client:
pass

This will automatically call the aexit method to close the client when exiting.

Link:

https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.2

  • Upgraded SDK to support Upstream API V5.2.0

TikHub V5.2.0 Changelog

  • This time, the TikTok Web interface has been updated, and two new interfaces have been added to support the detection of the broadcast status of a single live broadcast room, obtaining live broadcast room information through the live broadcast link (offline live broadcast rooms can also be obtained), and the homepage video interface of Douyin APP V1 V2 V3 has been optimized to increase stability.

Reminder

Don't forget to update the Scopes value of your API Token in our user backend before calling the API. Otherwise, your token will be rejected due to insufficient permissions.

Add URIs

  • URI:/api/v1/tiktok/web/fetch_check_live_alive
    • Cost: $0.001
  • URI:/api/v1/tiktok/web/fetch_tiktok_live_data
    • Cost: $0.001

Link

https://api.tikhub.io/#/TikTok-Web-API

Detail

https://discord.com/channels/1070512513889878067/1088994529362841610/1269177672622411928

Install

pip install tikhub==1.12.4