instagram-follower-scraper icon indicating copy to clipboard operation
instagram-follower-scraper copied to clipboard

ISSUIE ON RUNNING INSTAGRAM BOT

Open valentine-sys opened this issue 1 year ago • 9 comments

I have done all there requirements but when I run python3 run.py , I get there followers I want to scrape alright and amount followers also alright... But there is an error that stops it,, please help, image

valentine-sys avatar Mar 22 '23 08:03 valentine-sys

Are you sure that you have created the .env file and put username and password of your instagram. Or you can just rename the .env.example into .env and put your credentials.

redianmarku avatar Mar 22 '23 08:03 redianmarku

Yes I added my username and password in there .env file,, and also renamed there file to .env, Now that error before is now solved but when I run "python3 run.py" another error is now displaying, image

valentine-sys avatar Mar 22 '23 09:03 valentine-sys

what version of python are you using? Make sure to use python3 in your commands and also pip3 when you install requirements

redianmarku avatar Mar 22 '23 14:03 redianmarku

Can confirm; I am getting the same issue. I am using python3 and pip3, and both are up-to-date. My .env file is just named "untitled.env"—I assume that isn't an issue. Screenshot 2023-03-23 at 11 50 13 PM

JulianInvictus avatar Mar 23 '23 22:03 JulianInvictus

naming "untitled.env" is an issue, .env is an environment file and it should always be named like that. We use environment file to hide sensitive information like password in this case. If you are having problems getting infos about your account from .env you can edit the code and replace it directly in the code.

redianmarku avatar Mar 25 '23 13:03 redianmarku

What should I name the .env file then? It can't just have an extension for a name--not on MacOS at least.

JulianInvictus avatar Mar 25 '23 19:03 JulianInvictus

please use a code editor like VScode because you cant edit it directly on mac

redianmarku avatar Mar 25 '23 19:03 redianmarku

Okay edited it on VSCode, still running into the same error message as before. Screenshot 2023-03-25 at 8 05 51 PM

JulianInvictus avatar Mar 25 '23 20:03 JulianInvictus

If you are using it for personal use, to avoid this error you can save your username and password in run.py file instead of .env at line 12 and 13 respectively. image

labhayl avatar Mar 28 '23 18:03 labhayl