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