在Python模块中使用InstaLoader

在Python模块中使用InstaLoader,python,instagram,Python,Instagram,我正在尝试下载与标签相关的照片,以便使用Instaloader进行图像分析。我在GitHub存储库中找到了一种全面的方法,即如何在终端中执行它。但是,我需要将脚本集成到Python笔记本中 下面是脚本:$instaloader--没有视频--没有元数据json--没有字幕“#streetart” 我试过这个: 导入instaloader loader=instaloader.instaloader() loader.download_hashtag('amg',max_count=20) 但是

我正在尝试下载与标签相关的照片,以便使用Instaloader进行图像分析。我在GitHub存储库中找到了一种全面的方法,即如何在终端中执行它。但是,我需要将脚本集成到Python笔记本中

下面是脚本:
$instaloader--没有视频--没有元数据json--没有字幕“#streetart”

我试过这个:

导入instaloader
loader=instaloader.instaloader()
loader.download_hashtag('amg',max_count=20)
但是我找不到一种方法来过滤结果,只将图片作为输出返回。有人能帮我吗

非常感谢。

导入instaloader
loader=instaloader.instaloader(下载视频=False,保存元数据=False,发布元数据=txt\u模式=“”)
loader.download_hashtag('streetart',max_count=20)