python - Python Instabot 无法登录我的企业帐户,已达到限制
问题描述
因此,我正在尝试使用 python Instabot 将帖子安排到我的企业帐户,但即使我第一次在我的主帐户上使用该脚本,我仍然会达到请求限制,它在我的测试帐户(即普通的 Instagram 帐户)中运行良好。
我的代码:
# DECLARING BOT INSTANCE
bot = Bot()
# END BLOCK
def post_instagram(id_):
row = check_if_exist(id_)
sub_title = row[1]
sub_link = row[2]
sub_status = row[3]
if sub_status == "FALSE":
print(f'[INFO] Status is False, Ready To Upload')
download_file(sub_title, sub_link)
resize_pic(f'{BASE_PATH}\\images\\{sub_title}.jpg')
if os.path.isfile(f"{BASE_PATH}\\config\\memelord6706_uuid_and_cookie.json"):
os.remove(f"{BASE_PATH}\\config\\memelord6706_uuid_and_cookie.json")
bot.login(username=config['account']['insta_user'], password=config['account']['insta_pass'])
bot.upload_photo(f"{BASE_PATH}\\images\\{sub_title}.jpg", caption=sub_title)
bot.logout()
update_row(id_, "TRUE")
我知道这个库不是那么受欢迎,但非常感谢任何帮助,谢谢。
解决方案
推荐阅读
- python - 使用 google-oauth 丢失 Flask 服务器端会话
- java - 修改数组中单个元素的值 - firestore
- php - 以 Symfony 形式添加 EntityType 的 CollectionType
- node.js - 有没有办法减少执行从 npm 安装的节点应用程序的命令
- spotify - 按 f1 按钮时如何停止 Spotify
- python - Fabrics 2.x 使用身份的 ssh 连接无法正常工作
- javascript - 如何检查从哪个文件或代码中创建了任何特定的 html 元素
- c++ - 如何在 C++ 中重复字符串?
- entity-framework - 无法使用实体框架运行 Blazor 项目
- javascript - array.flat() 上的链函数不起作用