Repository navigation
Replies: 2 comments 1 reply
|
目前 TikTokDownloader 不支持将批量采集的多个作者数据合并保存到同一个 xlsx 文件中。程序设计上每个账号会独立创建 xlsx 文件,命名格式为 替代方案:
To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
0 replies
|
感谢解答!
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2026年03月16日 16:23 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [JoeanAmier/TikTokDownloader] 可以把批量采集的数据保存到同一个xlsx文件中吗 (Discussion #704) |
目前 TikTokDownloader 不支持将批量采集的多个作者数据合并保存到同一个 xlsx 文件中。程序设计上每个账号会独立创建 xlsx 文件,命名格式为 UID{账号ID}_{标识}_{类型}.xlsx。
替代方案:
使用 SQLite 格式(推荐):将 storage_format 设置为 "sql",所有账号的数据会存储在同一个数据库文件中,方便统一查询和管理。
后期手动合并:采集完成后用 Python 脚本合并多个 xlsx 文件:
importpandasaspdfrompathlibimportPathall_data= [pd.read_excel(f) forfinPath("Data").glob("*.xlsx")]
pd.concat(all_data, ignore_index=True).to_excel("merged.xlsx", index=False)
修改源码:如果使用源码版本,可以参考官方文档编辑 src/custom 文件夹内容来自定义保存逻辑。
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
批量采集作者主页作品时,如何把当前采集任务中所有作者的数据存储到同一个文件中,而不是每一个作者单独存储到一个文件。
All reactions