Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zl_project
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglei
zl_project
Commits
52415bd1
Commit
52415bd1
authored
May 19, 2021
by
Fear1ess
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4
parent
6277621e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
592 additions
and
0 deletions
+592
-0
tencentnews_pb2.py
腾讯视频protobuf-python/tencentnews_pb2.py
+489
-0
tencentnews_req.py
腾讯视频protobuf-python/tencentnews_req.py
+103
-0
No files found.
腾讯视频protobuf-python/tencentnews_pb2.py
0 → 100644
View file @
52415bd1
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tencentnews.proto
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
message
as
_message
from
google.protobuf
import
reflection
as
_reflection
from
google.protobuf
import
symbol_database
as
_symbol_database
# @@protoc_insertion_point(imports)
_sym_db
=
_symbol_database
.
Default
()
DESCRIPTOR
=
_descriptor
.
FileDescriptor
(
name
=
'tencentnews.proto'
,
package
=
''
,
syntax
=
'proto3'
,
serialized_options
=
None
,
serialized_pb
=
b
'
\n\x11
tencentnews.proto
\"\xbe\x01\n\x18
TencentNewsMiniGameAdReq
\x12\r\n\x05
req_1
\x18\x01
\x01
(
\x05\x12\x17\n\x0f
minisdk_version
\x18\x02
\x01
(
\t\x12\x0f\n\x07\x61
pp_env
\x18\x03
\x01
(
\t\x12\x15\n\x05
req_4
\x18\x04
\x01
(
\x0b\x32\x06
.Req_4
\x12\r\n\x05
req_5
\x18\x05
\x01
(
\t\x12\r\n\x05
req_6
\x18\x06
\x01
(
\t\x12\r\n\x05
req_7
\x18\x07
\x01
(
\t\x12\x15\n\x05
req_8
\x18\x08
\x01
(
\x0b\x32\x06
.Req_8
\x12\x0e\n\x06
req_11
\x18\x0b
\x01
(
\x05\"
r
\n\x05
Req_4
\x12\x19\n\x07
req_4_1
\x18\x01
\x01
(
\x0b\x32\x08
.Req_4_1
\x12\x15\n\r
gdt_inner_url
\x18\x02
\x01
(
\t\x12\x15\n\x05
param
\x18\x03
\x03
(
\x0b\x32\x06
.Param
\x12\x0f\n\x07
req_4_4
\x18\x04
\x01
(
\t\x12\x0f\n\x07
req_4_5
\x18\x05
\x01
(
\x05\"
\n\x07
Req_4_1
\x12\x15\n\x05
param
\x18\x01
\x03
(
\x0b\x32\x06
.Param
\"
#
\n\x05
Param
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t\"\x88\x01\n\x05
Req_8
\x12\x0f\n\x07
req_8_1
\x18\x01
\x01
(
\t\x12\x0f\n\x07
req_8_2
\x18\x02
\x01
(
\x0c\x12\x0f\n\x07
req_8_3
\x18\x03
\x01
(
\t\x12\x0f\n\x07
req_8_4
\x18\x04
\x01
(
\x05\x12\x19\n\x07
req_8_5
\x18\x05
\x01
(
\x0b\x32\x08
.Req_8_5
\x12\x0f\n\x07
req_8_6
\x18\x06
\x01
(
\t\x12\x0f\n\x07
req_8_7
\x18\x07
\x01
(
\t\"\x1c\n\x07
Req_8_5
\x12\x11\n\t
req_8_5_6
\x18\x06
\x01
(
\x06\"
B
\n\x18
TencentNewsMiniGameAdRep
\x12\r\n\x05
rep_1
\x18\x01
\x01
(
\x05\x12\x17\n\x06\x61\x64
Info
\x18\x04
\x01
(
\x0b\x32\x07
.AdInfo
\"\x16\n\x06\x41\x64
Info
\x12\x0c\n\x04\x64\x61
ta
\x18\x02
\x01
(
\t
b
\x06
proto3'
)
_TENCENTNEWSMINIGAMEADREQ
=
_descriptor
.
Descriptor
(
name
=
'TencentNewsMiniGameAdReq'
,
full_name
=
'TencentNewsMiniGameAdReq'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'req_1'
,
full_name
=
'TencentNewsMiniGameAdReq.req_1'
,
index
=
0
,
number
=
1
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'minisdk_version'
,
full_name
=
'TencentNewsMiniGameAdReq.minisdk_version'
,
index
=
1
,
number
=
2
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'app_env'
,
full_name
=
'TencentNewsMiniGameAdReq.app_env'
,
index
=
2
,
number
=
3
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_4'
,
full_name
=
'TencentNewsMiniGameAdReq.req_4'
,
index
=
3
,
number
=
4
,
type
=
11
,
cpp_type
=
10
,
label
=
1
,
has_default_value
=
False
,
default_value
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_5'
,
full_name
=
'TencentNewsMiniGameAdReq.req_5'
,
index
=
4
,
number
=
5
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_6'
,
full_name
=
'TencentNewsMiniGameAdReq.req_6'
,
index
=
5
,
number
=
6
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_7'
,
full_name
=
'TencentNewsMiniGameAdReq.req_7'
,
index
=
6
,
number
=
7
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8'
,
full_name
=
'TencentNewsMiniGameAdReq.req_8'
,
index
=
7
,
number
=
8
,
type
=
11
,
cpp_type
=
10
,
label
=
1
,
has_default_value
=
False
,
default_value
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_11'
,
full_name
=
'TencentNewsMiniGameAdReq.req_11'
,
index
=
8
,
number
=
11
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
22
,
serialized_end
=
212
,
)
_REQ_4
=
_descriptor
.
Descriptor
(
name
=
'Req_4'
,
full_name
=
'Req_4'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'req_4_1'
,
full_name
=
'Req_4.req_4_1'
,
index
=
0
,
number
=
1
,
type
=
11
,
cpp_type
=
10
,
label
=
1
,
has_default_value
=
False
,
default_value
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'gdt_inner_url'
,
full_name
=
'Req_4.gdt_inner_url'
,
index
=
1
,
number
=
2
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'param'
,
full_name
=
'Req_4.param'
,
index
=
2
,
number
=
3
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
has_default_value
=
False
,
default_value
=
[],
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_4_4'
,
full_name
=
'Req_4.req_4_4'
,
index
=
3
,
number
=
4
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_4_5'
,
full_name
=
'Req_4.req_4_5'
,
index
=
4
,
number
=
5
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
214
,
serialized_end
=
328
,
)
_REQ_4_1
=
_descriptor
.
Descriptor
(
name
=
'Req_4_1'
,
full_name
=
'Req_4_1'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'param'
,
full_name
=
'Req_4_1.param'
,
index
=
0
,
number
=
1
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
has_default_value
=
False
,
default_value
=
[],
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
330
,
serialized_end
=
362
,
)
_PARAM
=
_descriptor
.
Descriptor
(
name
=
'Param'
,
full_name
=
'Param'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'key'
,
full_name
=
'Param.key'
,
index
=
0
,
number
=
1
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'value'
,
full_name
=
'Param.value'
,
index
=
1
,
number
=
2
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
364
,
serialized_end
=
399
,
)
_REQ_8
=
_descriptor
.
Descriptor
(
name
=
'Req_8'
,
full_name
=
'Req_8'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'req_8_1'
,
full_name
=
'Req_8.req_8_1'
,
index
=
0
,
number
=
1
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8_2'
,
full_name
=
'Req_8.req_8_2'
,
index
=
1
,
number
=
2
,
type
=
12
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8_3'
,
full_name
=
'Req_8.req_8_3'
,
index
=
2
,
number
=
3
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8_4'
,
full_name
=
'Req_8.req_8_4'
,
index
=
3
,
number
=
4
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8_5'
,
full_name
=
'Req_8.req_8_5'
,
index
=
4
,
number
=
5
,
type
=
11
,
cpp_type
=
10
,
label
=
1
,
has_default_value
=
False
,
default_value
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8_6'
,
full_name
=
'Req_8.req_8_6'
,
index
=
5
,
number
=
6
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'req_8_7'
,
full_name
=
'Req_8.req_8_7'
,
index
=
6
,
number
=
7
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
402
,
serialized_end
=
538
,
)
_REQ_8_5
=
_descriptor
.
Descriptor
(
name
=
'Req_8_5'
,
full_name
=
'Req_8_5'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'req_8_5_6'
,
full_name
=
'Req_8_5.req_8_5_6'
,
index
=
0
,
number
=
6
,
type
=
6
,
cpp_type
=
4
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
540
,
serialized_end
=
568
,
)
_TENCENTNEWSMINIGAMEADREP
=
_descriptor
.
Descriptor
(
name
=
'TencentNewsMiniGameAdRep'
,
full_name
=
'TencentNewsMiniGameAdRep'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'rep_1'
,
full_name
=
'TencentNewsMiniGameAdRep.rep_1'
,
index
=
0
,
number
=
1
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'adInfo'
,
full_name
=
'TencentNewsMiniGameAdRep.adInfo'
,
index
=
1
,
number
=
4
,
type
=
11
,
cpp_type
=
10
,
label
=
1
,
has_default_value
=
False
,
default_value
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
570
,
serialized_end
=
636
,
)
_ADINFO
=
_descriptor
.
Descriptor
(
name
=
'AdInfo'
,
full_name
=
'AdInfo'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'data'
,
full_name
=
'AdInfo.data'
,
index
=
0
,
number
=
2
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
serialized_options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
638
,
serialized_end
=
660
,
)
_TENCENTNEWSMINIGAMEADREQ
.
fields_by_name
[
'req_4'
]
.
message_type
=
_REQ_4
_TENCENTNEWSMINIGAMEADREQ
.
fields_by_name
[
'req_8'
]
.
message_type
=
_REQ_8
_REQ_4
.
fields_by_name
[
'req_4_1'
]
.
message_type
=
_REQ_4_1
_REQ_4
.
fields_by_name
[
'param'
]
.
message_type
=
_PARAM
_REQ_4_1
.
fields_by_name
[
'param'
]
.
message_type
=
_PARAM
_REQ_8
.
fields_by_name
[
'req_8_5'
]
.
message_type
=
_REQ_8_5
_TENCENTNEWSMINIGAMEADREP
.
fields_by_name
[
'adInfo'
]
.
message_type
=
_ADINFO
DESCRIPTOR
.
message_types_by_name
[
'TencentNewsMiniGameAdReq'
]
=
_TENCENTNEWSMINIGAMEADREQ
DESCRIPTOR
.
message_types_by_name
[
'Req_4'
]
=
_REQ_4
DESCRIPTOR
.
message_types_by_name
[
'Req_4_1'
]
=
_REQ_4_1
DESCRIPTOR
.
message_types_by_name
[
'Param'
]
=
_PARAM
DESCRIPTOR
.
message_types_by_name
[
'Req_8'
]
=
_REQ_8
DESCRIPTOR
.
message_types_by_name
[
'Req_8_5'
]
=
_REQ_8_5
DESCRIPTOR
.
message_types_by_name
[
'TencentNewsMiniGameAdRep'
]
=
_TENCENTNEWSMINIGAMEADREP
DESCRIPTOR
.
message_types_by_name
[
'AdInfo'
]
=
_ADINFO
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
TencentNewsMiniGameAdReq
=
_reflection
.
GeneratedProtocolMessageType
(
'TencentNewsMiniGameAdReq'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_TENCENTNEWSMINIGAMEADREQ
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:TencentNewsMiniGameAdReq)
})
_sym_db
.
RegisterMessage
(
TencentNewsMiniGameAdReq
)
Req_4
=
_reflection
.
GeneratedProtocolMessageType
(
'Req_4'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_REQ_4
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:Req_4)
})
_sym_db
.
RegisterMessage
(
Req_4
)
Req_4_1
=
_reflection
.
GeneratedProtocolMessageType
(
'Req_4_1'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_REQ_4_1
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:Req_4_1)
})
_sym_db
.
RegisterMessage
(
Req_4_1
)
Param
=
_reflection
.
GeneratedProtocolMessageType
(
'Param'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_PARAM
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:Param)
})
_sym_db
.
RegisterMessage
(
Param
)
Req_8
=
_reflection
.
GeneratedProtocolMessageType
(
'Req_8'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_REQ_8
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:Req_8)
})
_sym_db
.
RegisterMessage
(
Req_8
)
Req_8_5
=
_reflection
.
GeneratedProtocolMessageType
(
'Req_8_5'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_REQ_8_5
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:Req_8_5)
})
_sym_db
.
RegisterMessage
(
Req_8_5
)
TencentNewsMiniGameAdRep
=
_reflection
.
GeneratedProtocolMessageType
(
'TencentNewsMiniGameAdRep'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_TENCENTNEWSMINIGAMEADREP
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:TencentNewsMiniGameAdRep)
})
_sym_db
.
RegisterMessage
(
TencentNewsMiniGameAdRep
)
AdInfo
=
_reflection
.
GeneratedProtocolMessageType
(
'AdInfo'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_ADINFO
,
'__module__'
:
'tencentnews_pb2'
# @@protoc_insertion_point(class_scope:AdInfo)
})
_sym_db
.
RegisterMessage
(
AdInfo
)
# @@protoc_insertion_point(module_scope)
腾讯视频protobuf-python/tencentnews_req.py
0 → 100644
View file @
52415bd1
import
base64
import
base64
import
json
import
time
import
requests
from
google.protobuf.json_format
import
MessageToJson
import
tencentnews_pb2
url
=
'https://minigame.ssp.qq.com/OpenChannel?qn-newsig=85b261f1c72eef2447836bf2dbfa6f364c91b6dbd31c4bcad86cfb5d73278b18'
headers
=
{
"Cookie"
:
"lskey=;skey=;uin=; luin=;logintype=0; suid=8gMc3n5d74AYujvd5gd3; main_login=; imei=6e2669e5b2c47822"
,
"Referer"
:
"http://inews.qq.com/inews/android/"
,
"User-Agent"
:
"
%
E8
%85%
BE
%
E8
%
AE
%
AF
%
E6
%96%
B0
%
E9
%97%
BB6350(android)"
,
"Content-Type"
:
"application/json"
,
"Host"
:
"minigame.ssp.qq.com"
,
"Connection"
:
"Keep-Alive"
,
"Accept-Encoding"
:
"gzip"
,
"client-ip-v4"
:
"1.119.145.230"
}
params1
=
{
'refer'
:
'xw_1006'
,
'via'
:
''
,
}
params2
=
{
'ext'
:
'{
\"
req
\"
:{
\"
m1
\"
:
\"
3529335da2b435e9d902868b2ff53f21
\"
,
\"
m2
\"
:
\"
8546e52776e680212237d5047d32e01f
\"
,
\"
m3
\"
:
\"
cace17a6ecd05b5507daa08be80bc8b0
\"
,
\"
muidtype
\"
:1,
\"
muid
\"
:
\"
3529335da2b435e9d902868b2ff53f21
\"
,
\"
m11
\"
:
\"
0101869F68498529763FE1450F84AC85F52F44936A8BA07976C38D939717C8C5AD932FF83ADE0C9B8B472CC0
\"
,
\"
m10
\"
:
\"\"
,
\"
m9
\"
:
\"
NfBv9ldwhM-cOQkHcT4DXstguYrnLGyTD1BZnUWRrNDOij_qGA-z13obzRFph1ngPtQZYOLgyW7XIgZ9FiGD59NkZaBT-AodCZHx-O6rNIAX3KvA0LqzKVpwRJH0DnKS
\"
,
\"
placement_type
\"
:1,
\"
render_type
\"
:3,
\"
conn
\"
:1,
\"
carrier
\"
:0,
\"
loc_src
\"
:4,
\"
support_app_landing_page
\"
:1,
\"
c_os
\"
:
\"
android
\"
,
\"
c_osver
\"
:
\"
8.1.0
\"
,
\"
c_pkgname
\"
:
\"
com.tencent.news
\"
,
\"
c_device
\"
:
\"
Pixel
\"
,
\"
c_devicetype
\"
:1,
\"
c_mf
\"
:
\"
Google
\"
,
\"
c_ori
\"
:0,
\"
c_w
\"
:1080,
\"
c_h
\"
:1920,
\"
sdkver
\"
:
\"
4.206.1076
\"
,
\"
tmpallpt
\"
:true,
\"
postype
\"
:13,
\"
deep_link_version
\"
:1,
\"
c_sdfree
\"
:17947701248,
\"
c_market
\"
:
\"\"
,
\"
c_hl
\"
:
\"
zh
\"
,
\"
scs
\"
:
\"
000170df116
\"
,
\"
ast
\"
:{
\"
br
\"
:
\"
google
\"
,
\"
de
\"
:
\"
sailfish
\"
,
\"
fp
\"
:
\"
google
\\
/sailfish
\\
/sailfish:8.1.0
\\
/OPM4.171019.021.P1
\\
/4820305:user
\\
/release-keys
\"
,
\"
hw
\"
:
\"
sailfish
\"
,
\"
pr
\"
:
\"
sailfish
\"
,
\"
sr
\"
:
\"
FA6930307116
\"
,
\"
is_d
\"
:false},
\"
from_js
\"
:0,
\"
sdk_st
\"
:2,
\"
sdk_pt
\"
:1,
\"
wx_api_ver
\"
:0,
\"
opensdk_ver
\"
:0,
\"
support_c2s
\"
:2,
\"
support_component
\"
:
\"
1,2,3
\"
,
\"
ex_exp_info
\"
:{
\"
exp_id
\"
:[
\"
xq_click_exp_and_base_aa
\"
,
\"
exp-unity-littleAPP-base
\"
],
\"
type
\"
:7},
\"
source_from
\"
:1110744484,
\"
hostappid
\"
:
\"
1110744484
\"
,
\"
hostver
\"
:
\"
6.3.50
\"
}}'
,
'posid'
:
'85563d6039bbe419d8b66ba51353603f'
,
'r'
:
'0.7720362466314054'
,
'adposcount'
:
'1'
,
'datatype'
:
'2'
,
'count'
:
'10'
,
'fc'
:
'1'
}
txreq
=
tencentnews_pb2
.
TencentNewsMiniGameAdReq
()
txreq
.
req_1
=
154
txreq
.
minisdk_version
=
'V1_AND_MINISDK_1.5.1_0_RELEASE_B'
txreq
.
app_env
=
'm=Pixel&o=8.1.0&a=27&p=1080*1794&f=Google&mm=3762&cf=1556&cc=4&qqversion=6.3.50'
txreq_4
=
txreq
.
req_4
txreq_4_1
=
txreq_4
.
req_4_1
for
key
,
value
in
params1
.
items
():
param
=
txreq_4_1
.
param
.
add
()
param
.
key
=
key
param
.
value
=
value
txreq_4
.
gdt_inner_url
=
'https://ii.gdt.qq.com/gdt_inner_view'
for
key
,
value
in
params2
.
items
():
param
=
txreq_4
.
param
.
add
()
param
.
key
=
key
param
.
value
=
value
txreq_4
.
req_4_4
=
'1110426504'
txreq_4
.
req_4_5
=
1
txreq
.
req_5
=
'6e2669e5b2c47822_1217121419555_95320'
txreq
.
req_6
=
'mini_app_ad'
txreq
.
req_7
=
'GetAdForSdk'
txreq_8
=
txreq
.
req_8
txreq_8
.
req_8_1
=
'6e2669e5b2c47822'
txreq_8
.
req_8_2
=
b
'
\x01\x01
'
txreq_8
.
req_8_3
=
'1012'
txreq_8
.
req_8_4
=
2
txreq_8_5
=
txreq_8
.
req_8_5
txreq_8_5
.
req_8_5_6
=
0x3232393338333030
txreq_8
.
req_8_6
=
''
txreq_8
.
req_8_7
=
''
txreq
.
req_11
=
0
res
=
txreq
.
SerializeToString
()
b64data
=
str
(
base64
.
encodebytes
(
res
),
'utf-8'
)
ts
=
int
(
time
.
time
())
#b64data2 = 'CJoBEiBWMV9BTkRfTUlOSVNES18xLjUuMV8wX1JFTEVBU0VfQhpPbT1QaXhlbCZvPTguMS4wJmE9\nMjcmcD0xMDgwKjE3OTQmZj1Hb29nbGUmbW09Mzc2MiZjZj0xNTU2JmNjPTQmcXF2ZXJzaW9uPTYu\nMy41MCLPCwobChAKBXJlZmVyEgd4d18xMDA2CgcKA3ZpYRIAEiRodHRwczovL2lpLmdkdC5xcS5j\nb20vZ2R0X2lubmVyX3ZpZXcaggoKA2V4dBL6CXsicmVxIjp7Im0xIjoiMzUyOTMzNWRhMmI0MzVl\nOWQ5MDI4NjhiMmZmNTNmMjEiLCJtMiI6Ijg1NDZlNTI3NzZlNjgwMjEyMjM3ZDUwNDdkMzJlMDFm\nIiwibTMiOiJjYWNlMTdhNmVjZDA1YjU1MDdkYWEwOGJlODBiYzhiMCIsIm11aWR0eXBlIjoxLCJt\ndWlkIjoiMzUyOTMzNWRhMmI0MzVlOWQ5MDI4NjhiMmZmNTNmMjEiLCJtMTEiOiIwMTAxODY5RjY4\nNDk4NTI5NzYzRkUxNDUwRjg0QUM4NUY1MkY0NDkzNkE4QkEwNzk3NkMzOEQ5Mzk3MTdDOEM1QUQ5\nMzJGRjgzQURFMEM5QjhCNDcyQ0MwIiwibTEwIjoiIiwibTkiOiJOZkJ2OWxkd2hNLWNPUWtIY1Q0\nRFhzdGd1WXJuTEd5VEQxQlpuVVdSck5ET2lqX3FHQS16MTNvYnpSRnBoMW5nUHRRWllPTGd5VzdY\nSWdaOUZpR0Q1OU5rWmFCVC1Bb2RDWkh4LU82ck5JQVgzS3ZBMExxektWcHdSSkgwRG5LUyIsInBs\nYWNlbWVudF90eXBlIjoxLCJyZW5kZXJfdHlwZSI6MywiY29ubiI6MSwiY2FycmllciI6MCwibG9j\nX3NyYyI6NCwic3VwcG9ydF9hcHBfbGFuZGluZ19wYWdlIjoxLCJjX29zIjoiYW5kcm9pZCIsImNf\nb3N2ZXIiOiI4LjEuMCIsImNfcGtnbmFtZSI6ImNvbS50ZW5jZW50Lm5ld3MiLCJjX2RldmljZSI6\nIlBpeGVsIiwiY19kZXZpY2V0eXBlIjoxLCJjX21mIjoiR29vZ2xlIiwiY19vcmkiOjAsImNfdyI6\nMTA4MCwiY19oIjoxOTIwLCJzZGt2ZXIiOiI0LjIwNi4xMDc2IiwidG1wYWxscHQiOnRydWUsInBv\nc3R5cGUiOjEzLCJkZWVwX2xpbmtfdmVyc2lvbiI6MSwiY19zZGZyZWUiOjE3OTQ3NzAxMjQ4LCJj\nX21hcmtldCI6IiIsImNfaGwiOiJ6aCIsInNjcyI6IjAwMDE3MGRmMTE2IiwiYXN0Ijp7ImJyIjoi\nZ29vZ2xlIiwiZGUiOiJzYWlsZmlzaCIsImZwIjoiZ29vZ2xlXC9zYWlsZmlzaFwvc2FpbGZpc2g6\nOC4xLjBcL09QTTQuMTcxMDE5LjAyMS5QMVwvNDgyMDMwNTp1c2VyXC9yZWxlYXNlLWtleXMiLCJo\ndyI6InNhaWxmaXNoIiwicHIiOiJzYWlsZmlzaCIsInNyIjoiRkE2OTMwMzA3MTE2IiwiaXNfZCI6\nZmFsc2V9LCJmcm9tX2pzIjowLCJzZGtfc3QiOjIsInNka19wdCI6MSwid3hfYXBpX3ZlciI6MCwi\nb3BlbnNka192ZXIiOjAsInN1cHBvcnRfYzJzIjoyLCJzdXBwb3J0X2NvbXBvbmVudCI6IjEsMiwz\nIiwiZXhfZXhwX2luZm8iOnsiZXhwX2lkIjpbInhxX2NsaWNrX2V4cF9hbmRfYmFzZV9hYSIsImV4\ncC11bml0eS1saXR0bGVBUFAtYmFzZSJdLCJ0eXBlIjo3fSwic291cmNlX2Zyb20iOjExMTA3NDQ0\nODQsImhvc3RhcHBpZCI6IjExMTA3NDQ0ODQiLCJob3N0dmVyIjoiNi4zLjUwIn19GikKBXBvc2lk\nEiA4NTU2M2Q2MDM5YmJlNDE5ZDhiNjZiYTUxMzUzNjAzZhoXCgFyEhIwLjc3MjAzNjI0NjYzMTQw\nNTQaDwoKYWRwb3Njb3VudBIBMRoNCghkYXRhdHlwZRIBMhoKCgVjb3VudBIBMRoHCgJmYxIBMSIK\nMTExMDQyNjUwNCgAKiQ2ZTI2NjllNWIyYzQ3ODIyXzEyMTcxMjE0MTk1NTVfOTUzMjAyC21pbmlf\nYXBwX2FkOgtHZXRBZEZvclNka0ItChA2ZTI2NjllNWIyYzQ3ODIyEgIBARoEMTAxMiACKgkxMDAz\nODM5MjIyADoAWAA=\n'
data
=
{
'request_data'
:
b64data
,
'timestamp'
:
ts
,
'nonce'
:
1027292128
}
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
data
))
content
=
res
.
json
()
resdata
=
content
.
get
(
"request_data"
)
respb
=
base64
.
b64decode
(
resdata
)
rep
=
tencentnews_pb2
.
TencentNewsMiniGameAdRep
()
rep
.
ParseFromString
(
respb
)
adData
=
MessageToJson
(
rep
)
adInfo
=
json
.
loads
(
adData
)
.
get
(
'adInfo'
)
.
get
(
'data'
)
print
(
adInfo
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment