首页 > 解决方案 > 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")

我知道这个库不是那么受欢迎,但非常感谢任何帮助,谢谢。

标签: pythonapiinstagram-api

解决方案


推荐阅读