Instaloader-下载所有带有自定义命名模式的故事
我正在尝试下载所有我的个人资料在Python模块中使用“ Instaloader”的故事。 default naming naming模式使用 default naming模式使用 dape_utc} _utc} _utc _utc“。我想用“ profilename-dateUploaded”模式命名所有故事,然后根据配置文件名称将它们存储在单独的文件夹中,但我不知道如何通过参数,这就是我所拥有的:
import instaloader
L = instaloader.Instaloader()
L.login(user, password)
for story in L.get_stories():
for item in story.get_items():
L.download_storyitem(item, ':story')
我可以在哪里通过这些。争论? 谢谢!
I'm trying to download all stories of what my profile follows using "Instaloader" in a Python module.
The default naming pattern uses "{date_utc}_UTC". I want to name all stories with the "profilename-dateuploaded" pattern and store them in separate folders based on profile names, but I don't know how to pass the parameters through, this is what I have:
import instaloader
L = instaloader.Instaloader()
L.login(user, password)
for story in L.get_stories():
for item in story.get_items():
L.download_storyitem(item, ':story')
Where exactly can I pass those arguments?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是我所做的:
This is what I did: