akshare-proxy-patch 0.2.3__tar.gz → 0.2.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.
Potentially problematic release.
This version of akshare-proxy-patch might be problematic. Click here for more details.
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/PKG-INFO +14 -12
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/README.md +13 -11
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch/__init__.py +2 -3
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/PKG-INFO +14 -12
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/pyproject.toml +1 -1
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/setup.py +1 -1
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/LICENSE +0 -0
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/SOURCES.txt +0 -0
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/dependency_links.txt +0 -0
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/requires.txt +0 -0
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/top_level.txt +0 -0
- {akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akshare-proxy-patch
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: 针对 AkShare 的底层补丁,自动为东财等接口注入代理认证头,从而避免 `stock_zh_a_spot_em` 等方法报错。
|
|
5
5
|
Home-page: https://github.com/helloyie/akshare-proxy-patch
|
|
6
6
|
Author: cheapproxy.net
|
|
@@ -24,21 +24,24 @@ Dynamic: requires-python
|
|
|
24
24
|
|
|
25
25
|
## 安装
|
|
26
26
|
|
|
27
|
+
1. 将官方 `akshare` 升级到最新
|
|
28
|
+
|
|
27
29
|
```
|
|
28
|
-
pip install
|
|
30
|
+
pip install upgrade akshare
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
2. 安装最新版本的 `akshare-proxy-patch`
|
|
34
|
+
```
|
|
35
|
+
pip install akshare-proxy-patch==0.2.3
|
|
36
|
+
```
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
最好默认用国外源,国内源有时不是最新的
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
## 使用
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
pip install --upgrade akshare
|
|
39
|
-
```
|
|
42
|
+
1. 登录 https://cheapproxy.net,获取授权码 `AUTH_IP` 和 `AUTH_TOKEN`
|
|
40
43
|
|
|
41
|
-
|
|
44
|
+
2. 在使用 akshare 文件顶部添加下面的内容
|
|
42
45
|
```
|
|
43
46
|
# 文件顶部添加
|
|
44
47
|
import akshare_proxy_patch
|
|
@@ -55,9 +58,8 @@ akshare_proxy_patch.install_patch("AUTH_IP", "AUTH_TOKEN")
|
|
|
55
58
|
- push2.eastmoney.com
|
|
56
59
|
- push2his.eastmoney.com
|
|
57
60
|
|
|
58
|
-
## TODO
|
|
59
|
-
- 多线程情况下容易出现问题,需暂时不使用多线程或减少线程数
|
|
60
|
-
|
|
61
61
|
## 使用问题交流群
|
|
62
62
|
|
|
63
|
+
如遇到部分接口报错,可进群交流:
|
|
64
|
+
|
|
63
65
|

|
|
@@ -3,21 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
## 安装
|
|
5
5
|
|
|
6
|
+
1. 将官方 `akshare` 升级到最新
|
|
7
|
+
|
|
6
8
|
```
|
|
7
|
-
pip install
|
|
9
|
+
pip install upgrade akshare
|
|
8
10
|
```
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
2. 安装最新版本的 `akshare-proxy-patch`
|
|
13
|
+
```
|
|
14
|
+
pip install akshare-proxy-patch==0.2.3
|
|
15
|
+
```
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
最好默认用国外源,国内源有时不是最新的
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
## 使用
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
pip install --upgrade akshare
|
|
18
|
-
```
|
|
21
|
+
1. 登录 https://cheapproxy.net,获取授权码 `AUTH_IP` 和 `AUTH_TOKEN`
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
2. 在使用 akshare 文件顶部添加下面的内容
|
|
21
24
|
```
|
|
22
25
|
# 文件顶部添加
|
|
23
26
|
import akshare_proxy_patch
|
|
@@ -34,9 +37,8 @@ akshare_proxy_patch.install_patch("AUTH_IP", "AUTH_TOKEN")
|
|
|
34
37
|
- push2.eastmoney.com
|
|
35
38
|
- push2his.eastmoney.com
|
|
36
39
|
|
|
37
|
-
## TODO
|
|
38
|
-
- 多线程情况下容易出现问题,需暂时不使用多线程或减少线程数
|
|
39
|
-
|
|
40
40
|
## 使用问题交流群
|
|
41
41
|
|
|
42
|
+
如遇到部分接口报错,可进群交流:
|
|
43
|
+
|
|
42
44
|

|
|
@@ -3,7 +3,7 @@ import threading
|
|
|
3
3
|
import requests
|
|
4
4
|
from requests.adapters import HTTPAdapter
|
|
5
5
|
|
|
6
|
-
__version__ = "0.2.
|
|
6
|
+
__version__ = "0.2.4"
|
|
7
7
|
# 备份 Session 的原始 request 方法,这是所有 requests.get/post 的最终入口
|
|
8
8
|
_original_request = requests.Session.request
|
|
9
9
|
_auth_session = requests.Session()
|
|
@@ -85,8 +85,7 @@ def install_patch(auth_ip, auth_token):
|
|
|
85
85
|
"https": auth_res["proxy"],
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
kwargs["timeout"] = 8
|
|
88
|
+
kwargs["timeout"] = 8
|
|
90
89
|
|
|
91
90
|
try:
|
|
92
91
|
# 调用原始 request 方法
|
{akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akshare-proxy-patch
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: 针对 AkShare 的底层补丁,自动为东财等接口注入代理认证头,从而避免 `stock_zh_a_spot_em` 等方法报错。
|
|
5
5
|
Home-page: https://github.com/helloyie/akshare-proxy-patch
|
|
6
6
|
Author: cheapproxy.net
|
|
@@ -24,21 +24,24 @@ Dynamic: requires-python
|
|
|
24
24
|
|
|
25
25
|
## 安装
|
|
26
26
|
|
|
27
|
+
1. 将官方 `akshare` 升级到最新
|
|
28
|
+
|
|
27
29
|
```
|
|
28
|
-
pip install
|
|
30
|
+
pip install upgrade akshare
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
2. 安装最新版本的 `akshare-proxy-patch`
|
|
34
|
+
```
|
|
35
|
+
pip install akshare-proxy-patch==0.2.3
|
|
36
|
+
```
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
最好默认用国外源,国内源有时不是最新的
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
## 使用
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
pip install --upgrade akshare
|
|
39
|
-
```
|
|
42
|
+
1. 登录 https://cheapproxy.net,获取授权码 `AUTH_IP` 和 `AUTH_TOKEN`
|
|
40
43
|
|
|
41
|
-
|
|
44
|
+
2. 在使用 akshare 文件顶部添加下面的内容
|
|
42
45
|
```
|
|
43
46
|
# 文件顶部添加
|
|
44
47
|
import akshare_proxy_patch
|
|
@@ -55,9 +58,8 @@ akshare_proxy_patch.install_patch("AUTH_IP", "AUTH_TOKEN")
|
|
|
55
58
|
- push2.eastmoney.com
|
|
56
59
|
- push2his.eastmoney.com
|
|
57
60
|
|
|
58
|
-
## TODO
|
|
59
|
-
- 多线程情况下容易出现问题,需暂时不使用多线程或减少线程数
|
|
60
|
-
|
|
61
61
|
## 使用问题交流群
|
|
62
62
|
|
|
63
|
+
如遇到部分接口报错,可进群交流:
|
|
64
|
+
|
|
63
65
|

|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="akshare-proxy-patch", # 包名,用户 pip install 时的名称
|
|
8
|
-
version="0.2.
|
|
8
|
+
version="0.2.4", # 版本号
|
|
9
9
|
author="cheapproxy.net",
|
|
10
10
|
author_email="emezxyj1@gmail.com",
|
|
11
11
|
description="AkShare 报错全局Hook",
|
|
File without changes
|
{akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/requires.txt
RENAMED
|
File without changes
|
{akshare_proxy_patch-0.2.3 → akshare_proxy_patch-0.2.4}/akshare_proxy_patch.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|