店播爬取Python脚本

douyin_pb2.py 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: douyin.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.proto',
  12. package='tutorial',
  13. syntax='proto3',
  14. serialized_options=None,
  15. serialized_pb=b'\n\x0c\x64ouyin.proto\x12\x08tutorial\"\xca\x01\n\x06\x44ouYin\x12\x30\n\x08messages\x18\x01 \x03(\x0b\x32\x1e.tutorial.DouYin.MessageDetail\x12\x0e\n\x06\x63ursor\x18\x02 \x01(\t\x12\x16\n\x0e\x66\x65tch_interval\x18\x03 \x01(\x03\x12\x0b\n\x03now\x18\x04 \x01(\x03\x12\x14\n\x0cinternal_ext\x18\x05 \x01(\t\x1a\x43\n\rMessageDetail\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\x11\n\tmessageId\x18\x03 \x01(\x03\x62\x06proto3'
  16. )
  17. _DOUYIN_MESSAGEDETAIL = _descriptor.Descriptor(
  18. name='MessageDetail',
  19. full_name='tutorial.DouYin.MessageDetail',
  20. filename=None,
  21. file=DESCRIPTOR,
  22. containing_type=None,
  23. fields=[
  24. _descriptor.FieldDescriptor(
  25. name='method', full_name='tutorial.DouYin.MessageDetail.method', index=0,
  26. number=1, type=9, cpp_type=9, label=1,
  27. has_default_value=False, default_value=b"".decode('utf-8'),
  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='payload', full_name='tutorial.DouYin.MessageDetail.payload', index=1,
  33. number=2, type=12, cpp_type=9, label=1,
  34. has_default_value=False, default_value=b"",
  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='messageId', full_name='tutorial.DouYin.MessageDetail.messageId', index=2,
  40. number=3, type=3, cpp_type=2, label=1,
  41. has_default_value=False, default_value=0,
  42. message_type=None, enum_type=None, containing_type=None,
  43. is_extension=False, extension_scope=None,
  44. serialized_options=None, file=DESCRIPTOR),
  45. ],
  46. extensions=[
  47. ],
  48. nested_types=[],
  49. enum_types=[
  50. ],
  51. serialized_options=None,
  52. is_extendable=False,
  53. syntax='proto3',
  54. extension_ranges=[],
  55. oneofs=[
  56. ],
  57. serialized_start=162,
  58. serialized_end=229,
  59. )
  60. _DOUYIN = _descriptor.Descriptor(
  61. name='DouYin',
  62. full_name='tutorial.DouYin',
  63. filename=None,
  64. file=DESCRIPTOR,
  65. containing_type=None,
  66. fields=[
  67. _descriptor.FieldDescriptor(
  68. name='messages', full_name='tutorial.DouYin.messages', index=0,
  69. number=1, type=11, cpp_type=10, label=3,
  70. has_default_value=False, default_value=[],
  71. message_type=None, enum_type=None, containing_type=None,
  72. is_extension=False, extension_scope=None,
  73. serialized_options=None, file=DESCRIPTOR),
  74. _descriptor.FieldDescriptor(
  75. name='cursor', full_name='tutorial.DouYin.cursor', index=1,
  76. number=2, type=9, cpp_type=9, label=1,
  77. has_default_value=False, default_value=b"".decode('utf-8'),
  78. message_type=None, enum_type=None, containing_type=None,
  79. is_extension=False, extension_scope=None,
  80. serialized_options=None, file=DESCRIPTOR),
  81. _descriptor.FieldDescriptor(
  82. name='fetch_interval', full_name='tutorial.DouYin.fetch_interval', index=2,
  83. number=3, type=3, cpp_type=2, label=1,
  84. has_default_value=False, default_value=0,
  85. message_type=None, enum_type=None, containing_type=None,
  86. is_extension=False, extension_scope=None,
  87. serialized_options=None, file=DESCRIPTOR),
  88. _descriptor.FieldDescriptor(
  89. name='now', full_name='tutorial.DouYin.now', index=3,
  90. number=4, type=3, cpp_type=2, label=1,
  91. has_default_value=False, default_value=0,
  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='internal_ext', full_name='tutorial.DouYin.internal_ext', index=4,
  97. number=5, 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=[_DOUYIN_MESSAGEDETAIL, ],
  106. enum_types=[
  107. ],
  108. serialized_options=None,
  109. is_extendable=False,
  110. syntax='proto3',
  111. extension_ranges=[],
  112. oneofs=[
  113. ],
  114. serialized_start=27,
  115. serialized_end=229,
  116. )
  117. _DOUYIN_MESSAGEDETAIL.containing_type = _DOUYIN
  118. _DOUYIN.fields_by_name['messages'].message_type = _DOUYIN_MESSAGEDETAIL
  119. DESCRIPTOR.message_types_by_name['DouYin'] = _DOUYIN
  120. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  121. DouYin = _reflection.GeneratedProtocolMessageType('DouYin', (_message.Message,), {
  122. 'MessageDetail' : _reflection.GeneratedProtocolMessageType('MessageDetail', (_message.Message,), {
  123. 'DESCRIPTOR' : _DOUYIN_MESSAGEDETAIL,
  124. '__module__' : 'douyin_pb2'
  125. # @@protoc_insertion_point(class_scope:tutorial.DouYin.MessageDetail)
  126. })
  127. ,
  128. 'DESCRIPTOR' : _DOUYIN,
  129. '__module__' : 'douyin_pb2'
  130. # @@protoc_insertion_point(class_scope:tutorial.DouYin)
  131. })
  132. _sym_db.RegisterMessage(DouYin)
  133. _sym_db.RegisterMessage(DouYin.MessageDetail)
  134. # @@protoc_insertion_point(module_scope)