You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
431 B

2 years ago
import json
from feishu import convert
with open('feishu_file_tokens.json', 'r', encoding='utf-8') as f:
file_tokens = f.read()
file_tokens = json.loads(file_tokens)
for t in file_tokens:
'https://tuc3es5ukv.feishu.cn/docx/RWcBdTuX4oQmHtxdsaUcfX6fnqh'
if '/docx/' in t:
continue
if '/file/' in t:
file_token = t.split('/')[-1]
# print(file_token)
convert(file_token)