lazyad 0.0.8__py3-none-any.whl → 0.0.10__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.
Potentially problematic release.
This version of lazyad might be problematic. Click here for more details.
lazyad/open/qq.py
CHANGED
|
@@ -66,7 +66,7 @@ def oauth_token3(
|
|
|
66
66
|
access_token,
|
|
67
67
|
app_id,
|
|
68
68
|
app_secret,
|
|
69
|
-
redirect_uri,
|
|
69
|
+
redirect_uri=None,
|
|
70
70
|
grant_type='authorization_code',
|
|
71
71
|
auth_code=None,
|
|
72
72
|
refresh_token=None,
|
|
@@ -83,7 +83,6 @@ def oauth_token3(
|
|
|
83
83
|
:param redirect_uri: 回调地址
|
|
84
84
|
:return:
|
|
85
85
|
"""
|
|
86
|
-
redirect_uri = f'{redirect_uri}?app_id={app_id}'
|
|
87
86
|
url = 'https://api.e.qq.com/v3.0/oauth/token'
|
|
88
87
|
params = {
|
|
89
88
|
'access_token': access_token,
|
|
@@ -99,11 +98,12 @@ def oauth_token3(
|
|
|
99
98
|
if refresh_token:
|
|
100
99
|
params['refresh_token'] = refresh_token
|
|
101
100
|
if redirect_uri:
|
|
101
|
+
redirect_uri = f'{redirect_uri}?app_id={app_id}'
|
|
102
102
|
params['redirect_uri'] = redirect_uri
|
|
103
103
|
|
|
104
|
-
for k in params:
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
# for k in params:
|
|
105
|
+
# if type(params[k]) is not str:
|
|
106
|
+
# params[k] = json.dumps(params[k])
|
|
107
107
|
|
|
108
108
|
return lazyrequests.lazy_requests(
|
|
109
109
|
method="GET",
|
|
@@ -4,8 +4,8 @@ lazyad/crawlers/chuangliang.py,sha256=mVlfN5fipQdRc6STuC0B68ntGCU23I1PF2sD5q2jnc
|
|
|
4
4
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
5
5
|
lazyad/crawlers/qq.py,sha256=5W5xVOmRtYRBhuFtrbX9XcrdmgeiV71zIIAtqF44io4,3060
|
|
6
6
|
lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
lazyad/open/qq.py,sha256=
|
|
8
|
-
lazyad-0.0.
|
|
9
|
-
lazyad-0.0.
|
|
10
|
-
lazyad-0.0.
|
|
11
|
-
lazyad-0.0.
|
|
7
|
+
lazyad/open/qq.py,sha256=YnhDqPtUVTvWmp2IPCVJUIBfF5vumnnrDifwYssB5qs,2901
|
|
8
|
+
lazyad-0.0.10.dist-info/METADATA,sha256=O9iO0TwEbclgUWf1oDYlNun5LbrPbiHn7-fyrDR5diQ,1695
|
|
9
|
+
lazyad-0.0.10.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
10
|
+
lazyad-0.0.10.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
11
|
+
lazyad-0.0.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|