Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUIE ON RUNNING INSTAGRAM BOT #22

Open
valentine-sys opened this issue Mar 22, 2023 · 9 comments
Open

ISSUIE ON RUNNING INSTAGRAM BOT #22

valentine-sys opened this issue Mar 22, 2023 · 9 comments

Comments

@valentine-sys
Copy link

valentine-sys commented Mar 22, 2023

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
Copy link
Owner

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
Copy link
Author

valentine-sys commented Mar 22, 2023

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
Copy link
Owner

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

@JulianInvictus
Copy link

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
Copy link
Owner

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
Copy link

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

@redianmarku
Copy link
Owner

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

@JulianInvictus
Copy link

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

@labhayl
Copy link

labhayl commented Mar 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants