Skip to content

Commit ffd268d

Browse files
committed
release 0.1.3
1 parent 023f68f commit ffd268d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ pip install pysnowball
1414

1515
```python
1616
>>> import pysnowball as ball
17-
>>> ball.set_token('xq_a_token=651af***************031c96a315c;')
18-
'xq_a_token=651af***************031c96a315c;'
17+
>>> ball.set_token("xq_a_token=662745a236*****;u=909119****")
1918
>>> ball.cash_flow('SH600000')
2019
```
2120

22-
调用API前需要手动获取雪球网站的token,使用set_token设置token后才能访问雪球的API。
21+
调用API前需要手动获取雪球网站的token,使用set_token设置token后才能访问雪球的API。s(xq_a_token & u)
2322

2423
传送门 === [如何获取雪球token](https://blog.crackcreed.com/diy-xue-qiu-app-shu-ju-api/)
2524

pysnowball/utls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def fetch(url, host="stock.xueqiu.com"):
99
HEADERS = {'Host': host,
1010
'Accept': 'application/json',
1111
'Cookie': token.get_token(),
12-
'User-Agent': 'Xueqiu iPhone 11.8',
12+
'User-Agent': 'Xueqiu iPhone 14.15.1',
1313
'Accept-Language': 'zh-Hans-CN;q=1, ja-JP;q=0.9',
1414
'Accept-Encoding': 'br, gzip, deflate',
1515
'Connection': 'keep-alive'}

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
1414
```python
1515
>>> import pysnowball as ball
16-
>>> ball.set_token('xq_a_token=651af***************031c96a315c;')
17-
'xq_a_token=651af***************031c96a315c;'
16+
>>> ball.set_token('xq_a_token=651af***************031c96a315c;u=9******')
1817
>>> ball.cash_flow('SH600000')
1918
```
2019
@@ -76,7 +75,7 @@ def read_install_requires():
7675

7776
setuptools.setup(
7877
name="pysnowball",
79-
version="0.1.2",
78+
version="0.1.3",
8079
author="Yang Yu",
8180
author_email="[email protected]",
8281
description="xueqiu api python client | 集成雪球API",

0 commit comments

Comments
 (0)