python - 需要一些帮助来使用 instaloader 编写代码
问题描述
我是 instaloader 的新手。我想找到一种方法来编写代码,以获取特定帐户中的一些帖子,这些帖子在其标题中包含一个特殊单词,例如返回标题中包含“美国”的帖子。我只能得到一个帐户的所有帖子。这是我的代码:
import instaloader
acc=input("inter your account: ")
user=input("inter your username: ")
password=input("inter your password: ")
test=instaloader.Instaloader(download_videos=False)
l=test.login(user,password)
post=instaloader.Profile.from_username(test.context,acc).get_posts()
test.download_profile(profile_name=acc)
解决方案
推荐阅读
- amazon-web-services - 跨域请求块
- c# - 如何通过窗口服务连接和编写 Orbita 读卡器 C# 应用程序
- c - 为什么使用 malloc()?为什么变量的大小没有增加?
- amazon-web-services - 如何获取 Amazon Cognito 中的用户更新更改日志?
- reactjs - 如何清除 FullCalendar 缓存事件
- ios - 我想将 Json 值替换为 iOS 中的另一个字符串值
- android - 有 Nativescript Jalali 日历插件吗?(或者我怎样才能将波斯(Jalali)日期提供给 RadCalendar 以显示?)
- python - 如何在熊猫中过滤 groupby 对象
- javascript - 从不使用 JSON.parse 的子字符串中获取数字
- php - PHP Regex 从路径中获得第二次出现