shine-jayakumar / insta-likecom-bot

Automates likes and comments on an instagram account or tag
MIT License
136 stars 29 forks source link

strarting the scripts gives modules.instafunc error #93

Closed name-in-use closed 9 months ago

name-in-use commented 11 months ago

PS C:\Users\Xrhst\Desktop\AI OFM\insta-likecom-bot-master\insta-likecom-bot-master> ./ilcbot.py PS C:\Users\Xrhst\Desktop\AI OFM\insta-likecom-bot-master\insta-likecom-bot-master> python ilcbot.py Traceback (most recent call last): File "C:\Users\Xrhst\Desktop\AI OFM\insta-likecom-bot-master\insta-likecom-bot-master\ilcbot.py", line 15, in from modules.instafunc import * File "C:\Users\Xrhst\Desktop\AI OFM\insta-likecom-bot-master\insta-likecom-bot-master\modules\instafunc.py", line 52, in logger = AppLogger(name).getlogger() File "C:\Users\Xrhst\Desktop\AI OFM\insta-likecom-bot-master\insta-likecom-bot-master\modules\applogger.py", line 35, in init file_handler = TimedRotatingFileHandler(logfname, when='midnight') File "C:\Users\Xrhst\AppData\Local\Programs\Python\Python310\lib\logging\handlers.py", line 214, in init BaseRotatingHandler.init(self, filename, 'a', encoding=encoding, File "C:\Users\Xrhst\AppData\Local\Programs\Python\Python310\lib\logging\handlers.py", line 58, in init logging.FileHandler.init(self, filename, mode=mode, File "C:\Users\Xrhst\AppData\Local\Programs\Python\Python310\lib\logging__init.py", line 1169, in init StreamHandler.init__(self, self._open()) File "C:\Users\Xrhst\AppData\Local\Programs\Python\Python310\lib\logging__init__.py", line 1201, in _open return open_func(self.baseFilename, self.mode, FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Xrhst\Desktop\AI OFM\insta-likecom-bot-master\insta-likecom-bot-master\logs\instalikecombot_2023_10_12.log'

shine-jayakumar commented 11 months ago

Create a folder named logs and run the script again

name-in-use commented 11 months ago

I see that you havent code part for accepting cookies when instagram page opens...After opens instagram page immediately closes with error. how we should handle that

shine-jayakumar commented 11 months ago

I see that you havent code part for accepting cookies when instagram page opens...After opens instagram page immediately closes with error. how we should handle that

I haven't had the need to explicitly handle cookies. Let me know the error log so I can see the error.

shine-jayakumar commented 9 months ago

Issue fixed in v.3.0.4