GithubHelp home page GithubHelp logo

Comments (19)

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024 1

This error happened because the script was unable to get the number of posts on the page. This may happen if the section containing the number of posts was not loaded and the script timed-out tried to find the number of posts.

I have added logic to reattempt capturing the number of posts for the page. You can close the repo again and retry.

Log from recent run:
[] => Script started
[
] => Loaded comments from testcomments.txt
[] => Downloading webdriver for your version of Chrome
[
] => Initializing instagram user
[] => Setting target to: opensea
[
] => Attempting to log in with shinej08
[] => Login successful
[
] => Skipping Save Login Info
[] => Do not save login info: True
[
] => Opening target opensea
[open_target]: Attempt - 1
[get_number_of_posts]: Attempt - 1
[] => No. of posts found: 683
[
] => Checking if comments are disabled
[] => Comments are enabled
[
] => Number of posts to like: 2
[] => Liking post: 1
[like]: Attempt - 1
[
] => Commenting on the post
[comment]: Attempt - 1
[comment]: Attempt - 2
[] => Commented: Amazing content Follow me _____
[
] => Moving on to the next post
[] => Waiting for 4 seconds
[
] => Liking post: 2
[like]: Attempt - 1
[] => Commenting on the post
[comment]: Attempt - 1
[comment]: Attempt - 2
[
] => Commented: Amazing content Follow me ______
[] => Moving on to the next post
[
] => Waiting for 9 seconds
[] => Script finished successfully
[
] => Total time taken: 68.0698 seconds

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024 1

This is the code I made for the likes

instalikecombot.py nftanimal221 ****** haunted.fork -np 2

[] => Script started
[
] => Downloading webdriver for your version of Chrome
[] => Initializing instagram user
[
] => Setting target to: haunted.fork
[] => Attempting to log in with nftanimal221
[
] => Login successful
[] => Skipping Save Login Info
[
] => Do not save login info: True
[] => Opening target haunted.fork
[open_target]: Attempt - 1
[
] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[
] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[] => Script ended with error : No posts found for the target
[
] => Total time taken: 130.015 seconds

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

Hi I get the same error on auto comment and auto like

[] => Script started
[
] => Downloading webdriver for your version of Chrome
[] => Initializing instagram user
[
] => Setting target to: nftstarnetwork
[] => Attempting to log in with adesing007
[
] => Login successful
[] => Skipping Save Login Info
[
] => Do not save login info: True
[] => Opening target nftstarnetwork
[open_target]: Attempt - 1
[
] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[
] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[*] => Script ended with error : No posts found for the target

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

Have you tried a different username?

This is working for me:
[] => Script started
[
] => Downloading webdriver for your version of Chrome
[] => Initializing instagram user
[
] => Setting target to: nftstarnetwork
[] => Attempting to log in with shinej08
[
] => Login successful
[] => Skipping Save Login Info
[
] => Do not save login info: True
[] => Opening target nftstarnetwork
[open_target]: Attempt - 1
[
] => No. of posts found: 12
[] => Checking if comments are disabled
[
] => Comments are enabled
[] => Number of posts to like: 2
[
] => Liking post: 1
[like]: Attempt - 1
[] => Commenting on the post
[comment]: Attempt - 1
[comment]: Attempt - 2
[
] => Commented: The shocker! 😮
[] => Moving on to the next post
[
] => Waiting for 5 seconds
[] => Liking post: 2
[like]: Attempt - 1
[
] => Commenting on the post
[comment]: Attempt - 1
[comment]: Attempt - 2
[] => Commented: The shocker! 😮
[
] => Moving on to the next post
[] => Waiting for 8 seconds
[
] => Script finished successfully
[*] => Total time taken: 65.7908 seconds

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

I don't understand why it doesn't work, I tried it on a different user

[] => Script started
[
] => Downloading webdriver for your version of Chrome
[] => Initializing instagram user
[
] => Setting target to: elonmusk
[] => Attempting to log in with adesing007
[
] => Login successful
[] => Skipping Save Login Info
[
] => Do not save login info: True
[] => Opening target elonmusk
[open_target]: Attempt - 1
[
] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1
[*] => Unable to find posts. Reloading the target
[open_target]: Attempt - 1

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

I don't understand why it doesn't work, I tried it on a different user

[] => Script started [] => Downloading webdriver for your version of Chrome [] => Initializing instagram user [] => Setting target to: elonmusk [] => Attempting to log in with adesing007 [] => Login successful [] => Skipping Save Login Info [] => Do not save login info: True [] => Opening target elonmusk [open_target]: Attempt - 1 [] => Unable to find posts. Reloading the target [open_target]: Attempt - 1 [*] => Unable to find posts. Reloading the target [open_target]: Attempt - 1

I was referring to the username 'adesing007'. Please check if you can login with 'adesing007' and access the page you're trying to automate. Try a different username instead of 'adesing007'.

[] => Script started
[
] => Downloading webdriver for your version of Chrome
[] => Initializing instagram user
[
] => Setting target to: elonmusk
[] => Attempting to log in with shinej08
[
] => Login successful
[] => Skipping Save Login Info
[
] => Do not save login info: True
[] => Opening target elonmusk
[open_target]: Attempt - 1
[
] => No. of posts found: 504
[] => Number of posts to like: 3
[
] => Liking post: 1
[like]: Attempt - 1
[] => Moving on to the next post
[
] => Waiting for 5 seconds
[] => Liking post: 2
[like]: Attempt - 1
[
] => Moving on to the next post
[] => Waiting for 2 seconds
[
] => Liking post: 3
[like]: Attempt - 1
[] => Moving on to the next post
[
] => Waiting for 10 seconds
[] => Script finished successfully
[
] => Total time taken: 35.2007 seconds

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

Hello I want to show you with a video, can you tell me if there is any mistake?

bandicam.2022-08-10.21-38-51-674.mp4

Amazing! The video helped a lot in figuring out the issue.

The script looks for the word, 'posts', to find the number of posts.
Since you opened the page in a different language than English, script couldn't find the word 'posts'.

Script has been updated now.

Also, the script now allows users to create a .env file in the same directory and specify their username, password, and target so they don't have to type it out in the terminal/command prompt.

There's a sample .env file in the latest push.

If you still want to provide your username, password, and target through terminal, you can use switch -u username, -p password, and -t target.
Ex:
instalikecombot.py -u yourusername -p yourpassword -t elonmusk -np 20 -c comments.txt

Documentation has been updated.

You can now do a pull again and run the latest script.

Hope that helps. Let me know if it works.

PS: you can choose to remove the video as I can still see your password

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

image

bandicam.2022-08-11.22-30-16-804.mp4

I don't understand where am I going wrong :(

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

image

bandicam.2022-08-11.22-30-16-804.mp4
I don't understand where am I going wrong :(

I understand the issue. It's because of the different language it's not able to find the comment box either. I will make changes to the code. Are you able to see the comment box though?

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

yes I see the comment box but it doesn't comment

i changed the chrome language setting, but I couldn't change the chromedriver instagram language

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

yes I see the comment box but it doesn't comment

i changed the chrome language setting, but I couldn't change the chromedriver instagram language

I understand. I will update the code soon.

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

Thank you,Okay. I am waiting to hear from you

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

Thank you,Okay. I am waiting to hear from you

Hi @knmzz, I have updated the code. Let me know if it's working for you.

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

I don't understand why I can't run
goes to instagram opens the post but then just waiting

[] => Script started
[
] => Loaded comments from follow.txt
[] => Downloading webdriver for your version of Chrome
[
] => Initializing instagram user
[] => Setting target to: #haiku
[
] => Attempting to log in with adesing007
[] => Login successful
[
] => Skipping Save Login Info
[] => Do not save login info: True
[
] => Opening target #haiku
[open_target]: Attempt - 1
[] => No. of posts found: 2003434
[
] => Number of posts to like: 2003434
[*] => Checking if comments are disabled

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

I don't understand why I can't run goes to instagram opens the post but then just waiting

[] => Script started [] => Loaded comments from follow.txt [] => Downloading webdriver for your version of Chrome [] => Initializing instagram user [] => Setting target to: #haiku [] => Attempting to log in with adesing007 [] => Login successful [] => Skipping Save Login Info [] => Do not save login info: True [] => Opening target #haiku [open_target]: Attempt - 1 [] => No. of posts found: 2003434 [] => Number of posts to like: 2003434 [*] => Checking if comments are disabled

Hi @knmzz this isn't a bug. The script was supposed to wait for 30 seconds to check if comments are disabled. Since you pointed this out, I changed the code a bit. Now, for every post, the script will check if the comment is disabled or not. It wouldn't be waiting now.

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

I waited for a long time but it didn't work
i don't understand what is the problem

[] => Script started
[
] => Loaded comments from follow.txt
[] => Downloading webdriver for your version of Chrome
[
] => Initializing instagram user
[] => Setting target to: #haiku
[
] => Attempting to log in with adesing007
[] => Login successful
[
] => Skipping Save Login Info
[] => Do not save login info: True
[
] => Opening target #haiku
[open_target]: Attempt - 1
[] => No. of posts found: 2004731
[
] => Number of posts to like: 2004731
[] => Checking if comments are disabled
[
] => Comments are enabled
[] => Liking post: 1
[like]: Attempt - 1
[
] => Commenting on the post
[comment]: Attempt - 1
[comment]: Attempt - 2

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

I waited for a long time but it didn't work i don't understand what is the problem

[] => Script started [] => Loaded comments from follow.txt [] => Downloading webdriver for your version of Chrome [] => Initializing instagram user [] => Setting target to: #haiku [] => Attempting to log in with adesing007 [] => Login successful [] => Skipping Save Login Info [] => Do not save login info: True [] => Opening target #haiku [open_target]: Attempt - 1 [] => No. of posts found: 2004731 [] => Number of posts to like: 2004731 [] => Checking if comments are disabled [] => Comments are enabled [] => Liking post: 1 [like]: Attempt - 1 [] => Commenting on the post [comment]: Attempt - 1 [comment]: Attempt - 2

You're still using the previous version of the script. Clone the latest version and try again.

from insta-likecom-bot.

knmzz avatar knmzz commented on August 25, 2024

image

image
waiting like this nothing has changed :(

image

from insta-likecom-bot.

shine-jayakumar avatar shine-jayakumar commented on August 25, 2024

image

image waiting like this nothing has changed :(

image

Hi there,
I've made further changes. Clone again and let me know.

from insta-likecom-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.