ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

lost atribute #301

Closed ghost closed 7 years ago

ghost commented 7 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?

For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Python 2.7.12

Code:

import sys
import os

sys.path.append(os.path.join(sys.path[0], '../'))
from instabot import Bot

bot = Bot()
bot.login()
medias = bot.get_total_user_medias(bot.user_id)
bot.download_photos(medias)

Error/Debug Log:

Traceback (most recent call last): File "examples/download_your_photos.py", line 17, in medias = bot.get_total_user_medias(bot.user_id) AttributeError: 'Bot' object has no attribute 'get_total_user_medias'


Describe your issue

i've checked in all the data that 'get_total_user_medias' is exist, i tried to change it to 'get_user_medias' it worked, but there's another error 'Bot' object has no attribute 'download_photos'

ohld commented 7 years ago

Reopen if you still have not found the solution (don't forget to update the bot).