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

Okay, everything is installed and browser opens.. but what happens next? #14

Open
MarisKay opened this issue Jan 14, 2025 · 4 comments
Open

Comments

@MarisKay
Copy link

Any kind of tutorial or walkthrough how to operate with this software would be perfect. Since according to docs npm start is how you launch it.. and then what? Browser opens, logs you into Insta.. and?... then i am pretty much on my own... how to tell find xyz posts, do zyx comments or likes? There is no info about how to use it?

@MarisKay
Copy link
Author

ai@ai-Z490-AORUS-ELITE-AC:~/Desktop/Riona-AI-Agent$ npm start

[email protected] start
tsc && node build/index.js

info: Starting Instagram agent... {"timestamp":"12:48:56 PM"}
info: Server is running on port 3000 {"timestamp":"12:48:56 PM"}
info: MongoDB connected {"timestamp":"12:48:56 PM"}
warn: Cookies file does not exist. {"timestamp":"12:48:57 PM"}
info: Checking cookies existence: false {"timestamp":"12:48:57 PM"}
error: Error saving cookies: ENOENT: no such file or directory, open './cookies/Instagramcookies.json' {"code":"ENOENT","errno":-2,"path":"./cookies/Instagramcookies.json","stack":"Error: ENOENT: no such file or directory, open './cookies/Instagramcookies.json'","syscall":"open","timestamp":"12:49:12 PM"}
error: Error logging in with credentials: {"timestamp":"12:49:12 PM"}
No more posts found. Exiting loop...
info: Instagram agent finished. {"timestamp":"12:49:16 PM"}
^Cinfo: Received SIGINT signal. {"timestamp":"12:49:22 PM"}
info: Shutting down gracefully... {"timestamp":"12:49:22 PM"}
info: Closed all connections gracefully. {"timestamp":"12:49:22 PM"}

I dont understand what is happening here, what is it trying to do? It opens an insta page, i manually allow cookies, then there are login/pass filled, i click login (since it doesnt do it automatically) , though it still says that error logginin with credentials despite i am loggedin... and then it exits.. Man, what am i suppose to do to actually find some posts, like them and comment? I don't have any info on this in your github, just blindfoldedly trying to guess.
Thanks

@w84death
Copy link

Create folder cookies in main direcotry
Create a file Instagramcookies.json in it. Edit file and write:
[]
Save.

@MarisKay
Copy link
Author

and how does that instructs the code to do exactly what i need? ..

@cliffhall
Copy link

and how does that instructs the code to do exactly what i need? ..

@MarisKay - looks like the app expected that file to be there and apparently wasn't robust enough to create it if it didn't exist.

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

3 participants