123456789101112131415161718192021222324252627 |
- # -*- coding: utf-8 -*-
- # @Author: wangkun
- # @Time: 2022/11/23
- import time
- from main.feishu_lib import Feishu
- class Demo:
- @classmethod
- def get_sheet(cls, log_type, crawler, sheetid):
- sheet = Feishu.get_values_batch(log_type, crawler, sheetid)
- print(sheet)
- @classmethod
- def publish_time(cls):
- time1 = '发布时间:2022年11月20日'
- time2 = time1.replace('发布时间:', '').replace('年', '/').replace('月', '/').replace('日', '')
- print(time2)
- time3 = int(time.mktime(time.strptime(time2, "%Y/%m/%d")))
- print(time3)
- if __name__ == '__main__':
- Demo.get_sheet('demo', 'haokan', '7f05d8')
- # Demo.publish_time()
- pass
|