店播爬取Python脚本

douyin_user_pb2.py 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: douyin_user.proto
  4. from google.protobuf import descriptor as _descriptor
  5. from google.protobuf import message as _message
  6. from google.protobuf import reflection as _reflection
  7. from google.protobuf import symbol_database as _symbol_database
  8. # @@protoc_insertion_point(imports)
  9. _sym_db = _symbol_database.Default()
  10. DESCRIPTOR = _descriptor.FileDescriptor(
  11. name='douyin_user.proto',
  12. package='tutorial',
  13. syntax='proto3',
  14. serialized_options=None,
  15. serialized_pb=b'\n\x11\x64ouyin_user.proto\x12\x08tutorial\"\xaf\x01\n\nDouYinUser\x12\'\n\x04user\x18\x02 \x01(\x0b\x32\x19.tutorial.DouYinUser.User\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x1ag\n\x04User\x12\x0b\n\x03uid\x18\x01 \x01(\x03\x12\x10\n\x08short_id\x18\x02 \x01(\x03\x12\x10\n\x08nickname\x18\x03 \x01(\t\x12\x0e\n\x06gender\x18\x04 \x01(\x05\x12\r\n\x05\x64y_id\x18& \x01(\t\x12\x0f\n\x07sec_uid\x18. \x01(\tb\x06proto3'
  16. )
  17. _DOUYINUSER_USER = _descriptor.Descriptor(
  18. name='User',
  19. full_name='tutorial.DouYinUser.User',
  20. filename=None,
  21. file=DESCRIPTOR,
  22. containing_type=None,
  23. fields=[
  24. _descriptor.FieldDescriptor(
  25. name='uid', full_name='tutorial.DouYinUser.User.uid', index=0,
  26. number=1, type=3, cpp_type=2, label=1,
  27. has_default_value=False, default_value=0,
  28. message_type=None, enum_type=None, containing_type=None,
  29. is_extension=False, extension_scope=None,
  30. serialized_options=None, file=DESCRIPTOR),
  31. _descriptor.FieldDescriptor(
  32. name='short_id', full_name='tutorial.DouYinUser.User.short_id', index=1,
  33. number=2, type=3, cpp_type=2, label=1,
  34. has_default_value=False, default_value=0,
  35. message_type=None, enum_type=None, containing_type=None,
  36. is_extension=False, extension_scope=None,
  37. serialized_options=None, file=DESCRIPTOR),
  38. _descriptor.FieldDescriptor(
  39. name='nickname', full_name='tutorial.DouYinUser.User.nickname', index=2,
  40. number=3, type=9, cpp_type=9, label=1,
  41. has_default_value=False, default_value=b"".decode('utf-8'),
  42. message_type=None, enum_type=None, containing_type=None,
  43. is_extension=False, extension_scope=None,
  44. serialized_options=None, file=DESCRIPTOR),
  45. _descriptor.FieldDescriptor(
  46. name='gender', full_name='tutorial.DouYinUser.User.gender', index=3,
  47. number=4, type=5, cpp_type=1, label=1,
  48. has_default_value=False, default_value=0,
  49. message_type=None, enum_type=None, containing_type=None,
  50. is_extension=False, extension_scope=None,
  51. serialized_options=None, file=DESCRIPTOR),
  52. _descriptor.FieldDescriptor(
  53. name='dy_id', full_name='tutorial.DouYinUser.User.dy_id', index=4,
  54. number=38, type=9, cpp_type=9, label=1,
  55. has_default_value=False, default_value=b"".decode('utf-8'),
  56. message_type=None, enum_type=None, containing_type=None,
  57. is_extension=False, extension_scope=None,
  58. serialized_options=None, file=DESCRIPTOR),
  59. _descriptor.FieldDescriptor(
  60. name='sec_uid', full_name='tutorial.DouYinUser.User.sec_uid', index=5,
  61. number=46, type=9, cpp_type=9, label=1,
  62. has_default_value=False, default_value=b"".decode('utf-8'),
  63. message_type=None, enum_type=None, containing_type=None,
  64. is_extension=False, extension_scope=None,
  65. serialized_options=None, file=DESCRIPTOR),
  66. ],
  67. extensions=[
  68. ],
  69. nested_types=[],
  70. enum_types=[
  71. ],
  72. serialized_options=None,
  73. is_extendable=False,
  74. syntax='proto3',
  75. extension_ranges=[],
  76. oneofs=[
  77. ],
  78. serialized_start=104,
  79. serialized_end=207,
  80. )
  81. _DOUYINUSER = _descriptor.Descriptor(
  82. name='DouYinUser',
  83. full_name='tutorial.DouYinUser',
  84. filename=None,
  85. file=DESCRIPTOR,
  86. containing_type=None,
  87. fields=[
  88. _descriptor.FieldDescriptor(
  89. name='user', full_name='tutorial.DouYinUser.user', index=0,
  90. number=2, type=11, cpp_type=10, label=1,
  91. has_default_value=False, default_value=None,
  92. message_type=None, enum_type=None, containing_type=None,
  93. is_extension=False, extension_scope=None,
  94. serialized_options=None, file=DESCRIPTOR),
  95. _descriptor.FieldDescriptor(
  96. name='content', full_name='tutorial.DouYinUser.content', index=1,
  97. number=3, type=9, cpp_type=9, label=1,
  98. has_default_value=False, default_value=b"".decode('utf-8'),
  99. message_type=None, enum_type=None, containing_type=None,
  100. is_extension=False, extension_scope=None,
  101. serialized_options=None, file=DESCRIPTOR),
  102. ],
  103. extensions=[
  104. ],
  105. nested_types=[_DOUYINUSER_USER, ],
  106. enum_types=[
  107. ],
  108. serialized_options=None,
  109. is_extendable=False,
  110. syntax='proto3',
  111. extension_ranges=[],
  112. oneofs=[
  113. ],
  114. serialized_start=32,
  115. serialized_end=207,
  116. )
  117. _DOUYINUSER_USER.containing_type = _DOUYINUSER
  118. _DOUYINUSER.fields_by_name['user'].message_type = _DOUYINUSER_USER
  119. DESCRIPTOR.message_types_by_name['DouYinUser'] = _DOUYINUSER
  120. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  121. DouYinUser = _reflection.GeneratedProtocolMessageType('DouYinUser', (_message.Message,), {
  122. 'User' : _reflection.GeneratedProtocolMessageType('User', (_message.Message,), {
  123. 'DESCRIPTOR' : _DOUYINUSER_USER,
  124. '__module__' : 'douyin_user_pb2'
  125. # @@protoc_insertion_point(class_scope:tutorial.DouYinUser.User)
  126. })
  127. ,
  128. 'DESCRIPTOR' : _DOUYINUSER,
  129. '__module__' : 'douyin_user_pb2'
  130. # @@protoc_insertion_point(class_scope:tutorial.DouYinUser)
  131. })
  132. _sym_db.RegisterMessage(DouYinUser)
  133. _sym_db.RegisterMessage(DouYinUser.User)
  134. # @@protoc_insertion_point(module_scope)