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.71k stars 1.47k forks source link

Clear Cache? #1169

Closed dangell7 closed 4 years ago

dangell7 commented 4 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


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

Paste the output of python -V here:

Code:

# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue

I'm using a file structure:

self.bot = Bot(base_path=ACCOUNT_DIR, filter_business_accounts=False)
self.bot.login(username=self.username, password=self.password, use_cookie=True)

and I was wondering how I can clear the cache of the bot? It seems that after I deleted the log files and cookie cache, it gives this error.

No such file or directory: '~/datasets/accounts/Yy6QoOJ113Qc1D3mj3Wg/instagram/log/instabot_4994823568.log'

I already uninstalled and reinstalled and it still shows the error. Any Ideas? The cookie file still exists in the directory.

bruvv commented 4 years ago

The coockie can befound in the exact same folder where the file is that you ran. Delete that. Next time please read the issue template before submitting the issue.