-
Notifications
You must be signed in to change notification settings - Fork 233
Releases: Cloxl/xhshow
Releases · Cloxl/xhshow
Release v0.2.0
@github-actions
github-actions
5f45309
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Changed
- Merge pull request #108 from Cloxl/feat/xrap-param (5f45309)
- remove unused import package
hashlib. (bcc67c7) - Update the algorithm of
POSTrequests. (aa8e8c5) - Cancel the import of extract_api_path. (83d04d2)
- Cancel the import of extract_api_path. (befb5a2)
- update test cases of session. (33feb61)
- Update sdk version to 4.3.3, solve the 406 error of
user/otherinfo,user_posted. (6e00116) - fix: replace assert guard with RuntimeError, reject None cookies (b3ea151)
- fix(ci): remove unused RequestSignatureValidator import (F401) (751d221)
- style: align sign_xyw with sign_xs API conventions (e70ab2a)
- fix: address review — use validated_method, remove unused constants, simplify AES-128 interface (d2f50af)
- feat(xyw): replace XYS wrapper with proper AES-128-CBC signing (6734eba)
- fix: add sign_format validation per review feedback (956ea79)
- style: fix ruff formatting (4662301)
- feat: add XYW_ signature format to bypass HTTP 406 on data APIs (b8064f6)
Full Changelog: v0.1.9...v0.2.0
Installation
pip install xhshow==0.2.0
Or upgrade from previous version:
pip install --upgrade xhshow
Quick Start
from xhshow import Xhshow, SessionManager # Basic usage client = Xhshow() # GET request signature signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "user_id": "123"} ) # POST request signature signature = client.sign_xs_post( uri="/api/sns/web/v1/comment/post", a1_value="your_a1_cookie_value", payload={"note_id": "123", "content": "Great!"} ) # Generate complete headers with session management session = SessionManager() headers = client.sign_headers_get( uri="/api/sns/web/v1/homefeed", cookies={"a1": "your_a1_value", "web_session": "..."}, params={"page": "1"}, session=session )
Documentation
Supported Python Versions
- Python 3.10+
- Python 3.11
- Python 3.12
What's Changed
- Update sdk version to 4.3.3, solve the 406 error of
user/otherinfo,user_posted. by @ljc545w in #106 - feat: add XYW_ signature format to bypass HTTP 406 on data APIs by @SeaL773 in #105
- Feat/xrap param by @Cloxl in #108
New Contributors
Full Changelog: v0.1.9...v0.2.0
Assets 2
Release v0.1.9
@github-actions
github-actions
11a0a08
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Changed
- feat(crypto): upgrade to mns0301 algorithm with 144-byte payload (#103) (11a0a08)
- Feat/add issue templates (#92) (7f01cc5)
- Feat/add issue templates (#91) (4cd158f)
- fix(ci): improve release notes generation and fix version format (#90) (b98168c)
Full Changelog: v0.1.8...v0.1.9
Installation
pip install xhshow==0.1.9
Or upgrade from previous version:
pip install --upgrade xhshow
Quick Start
from xhshow import Xhshow, SessionManager # Basic usage client = Xhshow() # GET request signature signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "user_id": "123"} ) # POST request signature signature = client.sign_xs_post( uri="/api/sns/web/v1/comment/post", a1_value="your_a1_cookie_value", payload={"note_id": "123", "content": "Great!"} ) # Generate complete headers with session management session = SessionManager() headers = client.sign_headers_get( uri="/api/sns/web/v1/homefeed", cookies={"a1": "your_a1_value", "web_session": "..."}, params={"page": "1"}, session=session )
Documentation
Supported Python Versions
- Python 3.10+
- Python 3.11
- Python 3.12
What's Changed
- fix(ci): improve release notes generation and fix version format by @Cloxl in #90
- Feat/add issue templates by @Cloxl in #91
- Feat/add issue templates by @Cloxl in #92
- feat(crypto): upgrade to mns0301 algorithm with 144-byte payload by @Cloxl in #103
Full Changelog: v0.1.8...v0.1.9
Assets 2
Release v0.1.8
@github-actions
github-actions
8b24b0a
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.8
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
Release v0.1.7
@github-actions
github-actions
751f157
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.7
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
Release v0.1.6
@github-actions
github-actions
89a1e54
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.6
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
2 people reacted
Release v0.1.5
@github-actions
github-actions
8aa7056
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.5
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
Release v0.1.4
@github-actions
github-actions
3fc4d6d
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.4
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
Release v0.1.3
@github-actions
github-actions
7774e22
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.3
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
Release v0.1.2
@github-actions
github-actions
4d9a7c5
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.2
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )
Assets 2
Release v0.1.1
@github-actions
github-actions
8f4557f
This commit was created on GitHub.com and signed with GitHub’s verified signature.
更新内容
安装
pip install xhshow==v0.1.1
使用方法
from xhshow import Xhshow client = Xhshow() # GET请求签名 signature = client.sign_xs_get( uri="/api/sns/web/v1/user_posted", a1_value="your_a1_cookie_value", params={"num": "30", "cursor": "", "user_id": "123"} ) # POST请求签名 signature = client.sign_xs_post( uri="/api/sns/web/v1/login", a1_value="your_a1_cookie_value", payload={"username": "test", "password": "123456"} )