chore: collect latest dingTalk feishu docs

This commit is contained in:
Evilom
2026-07-03 14:39:58 +08:00
parent d60ee0bc7c
commit 3ea50649f6
167 changed files with 23587 additions and 1759 deletions
@@ -16,10 +16,14 @@ def main():
for fi in files:
fid, name = fi.get("fileId",""), fi.get("name","unknown")
if not fid: continue
safe_name = os.path.basename(name)
ext = os.path.splitext(name)[1].lower()
subdir = "html-md" if ext in HTML_MD else "other"
out = os.path.join(DOWNLOAD_DIR, subdir)
os.makedirs(out, exist_ok=True)
if args.incremental and os.path.isfile(os.path.join(out, safe_name)):
print(f" SKIP {safe_name}")
continue
print(f" {name} -> {subdir}/")
try:
r = subprocess.run([dws,"drive","download","--node",fid,"--output",out],capture_output=True,timeout=120)