demo.py 742 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # @Author: wangkun
  3. # @Time: 2022/10/22
  4. from main.feishu_lib import Feishu
  5. class Demo:
  6. @classmethod
  7. def get_sheet(cls, log_type, crawler, sheet):
  8. sheet = Feishu.get_values_batch(log_type, crawler, sheet)
  9. print(sheet)
  10. @classmethod
  11. def video_url(cls):
  12. video_url = 'http://mpvideo.qpic.cn/0bc3iaabaaaafmabgd46ljrvaqgdcbaaaeaa.f10002.mp4?dis_k=17aabf3b2995531f464d35b76c8c25b5&dis_t=1671466144&play_scene=0'
  13. if video_url in [x for y in Feishu.get_values_batch('demo', 'jxxf', 'd9e9b1') for x in y]:
  14. print('yes')
  15. else:
  16. print('no')
  17. if __name__ == '__main__':
  18. # Demo.get_sheet('recommend', 'jxxf', '9Ws66h')
  19. Demo.video_url()
  20. pass