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

Unable to Login (Could not pass the login A/B test) #279

Open
philchow opened this issue Feb 15, 2023 · 4 comments
Open

Unable to Login (Could not pass the login A/B test) #279

philchow opened this issue Feb 15, 2023 · 4 comments

Comments

@philchow
Copy link

Hello,

I'm trying to use Instapy to do some automation works (follow, like, etc.), but every time when I run the quickstart python file, the terminal always shows the text "Could not pass the login A/B test." and "Login A/B test failed!", and then "session ended".

I found the issue #274 is same as mine, the solution is to edit xpath_compile.py file in the source code and then reinstall Instapy on the computer. However, I'm trying to run the bot on a ubuntu server, and I'm a beginner so I don't know how to install Instapy on a server after I changed the source code. "pip install instapy" apparently won't work, what command should I use to install a forked Instapy?

@brunoaduarte
Copy link

brunoaduarte commented Apr 27, 2023

Hello,

I'm trying to use Instapy to do some automation works (follow, like, etc.), but every time when I run the quickstart python file, the terminal always shows the text "Could not pass the login A/B test." and "Login A/B test failed!", and then "session ended".

I found the issue #274 is same as mine, the solution is to edit xpath_compile.py file in the source code and then reinstall Instapy on the computer. However, I'm trying to run the bot on a ubuntu server, and I'm a beginner so I don't know how to install Instapy on a server after I changed the source code. "pip install instapy" apparently won't work, what command should I use to install a forked Instapy?

Check the console for the current path of installed InstaPy upon the login error.
The file I have to edit for example is on path:

~/.local/lib/python3.10/site-packages/instapy/xpath_compile.py

Just make the text changes there.

@philchow
Copy link
Author

philchow commented Apr 28, 2023

Hello,
I'm trying to use Instapy to do some automation works (follow, like, etc.), but every time when I run the quickstart python file, the terminal always shows the text "Could not pass the login A/B test." and "Login A/B test failed!", and then "session ended".
I found the issue #274 is same as mine, the solution is to edit xpath_compile.py file in the source code and then reinstall Instapy on the computer. However, I'm trying to run the bot on a ubuntu server, and I'm a beginner so I don't know how to install Instapy on a server after I changed the source code. "pip install instapy" apparently won't work, what command should I use to install a forked Instapy?

Check the console for the current path of installed InstaPy upon the login error. The file I have to edit for example is on path:

~/.local/lib/python3.10/site-packages/instapy/xpath_compile.py

Just make the text changes there.

Hey @brunoaduarte ,

Thanks for telling me the path!

I successfully logged in after I edited the file.

However I encountered another problem, the error message is like this:

Failed to get followers count of 'b'...'' ~empty list

AttributeError: 'NoneType' object has no attribute 'get'

I found that this problem was also asked in the issue #264 , but there's no answer.

@brunoaduarte
Copy link

Hello,
I'm trying to use Instapy to do some automation works (follow, like, etc.), but every time when I run the quickstart python file, the terminal always shows the text "Could not pass the login A/B test." and "Login A/B test failed!", and then "session ended".
I found the issue #274 is same as mine, the solution is to edit xpath_compile.py file in the source code and then reinstall Instapy on the computer. However, I'm trying to run the bot on a ubuntu server, and I'm a beginner so I don't know how to install Instapy on a server after I changed the source code. "pip install instapy" apparently won't work, what command should I use to install a forked Instapy?

Check the console for the current path of installed InstaPy upon the login error. The file I have to edit for example is on path:
~/.local/lib/python3.10/site-packages/instapy/xpath_compile.py
Just make the text changes there.

Hey @brunoaduarte ,

Thanks for telling me the path!

I successfully logged in after I edited the file.

However I encountered another problem, the error message is like this:

Failed to get followers count of 'b'...'' ~empty list
AttributeError: 'NoneType' object has no attribute 'get'

I found that this problem was also asked in the issue #264 , but there's no answer.

Yes, I have the same problem here stil unsolved

InstaPy/InstaPy#6704 (comment)

@philchow
Copy link
Author

Hi @brunoaduarte ,

Oh, even you can't solve this problem... then it must be very difficult to find a solution.

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

2 participants