redianmarku / instagram-follower-scraper

A python script that can automatically scrape other people followers on instagram and save them in a txt file.
262 stars 87 forks source link

ISSUIE ON RUNNING INSTAGRAM BOT #22

Open valentine-sys opened 1 year ago

valentine-sys commented 1 year ago

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
redianmarku commented 1 year ago

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.

valentine-sys commented 1 year ago

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
redianmarku commented 1 year ago

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

JulianInvictus commented 1 year ago

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
redianmarku commented 1 year ago

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.

JulianInvictus commented 1 year ago

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

redianmarku commented 1 year ago

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

JulianInvictus commented 1 year ago

Okay edited it on VSCode, still running into the same error message as before.

Screenshot 2023-03-25 at 8 05 51 PM
labhayl commented 1 year ago

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