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
b"invalid literal for int() with base 10: '262\\nfollowers'" #6803
Comments
@thegreatref you can wrap the statement in a try\except block to keep your script running: try:
session = InstaPy(username=username, password=password)
session.login()
except AttributeError as e:
print(e) pls note this is a hacky fix |
This has to do with the text that it's being obtained, you need to modify source code ... stop using the function |
I've had luck with this library instagrapi for the common instagram functions. Login, Likes, and Comments are all working. Just be careful as instagram might flag the account. |
INFO [2024-04-11 19:58:16] [xposemediaza] Saving account progress...
WARNING [2024-04-11 19:58:20] [xposemediaza] Unable to save account progress, skipping data update
b"invalid literal for int() with base 10: '262\nfollowers'"
Traceback (most recent call last):
File "c:\Users\Refentse\Desktop\Work\Xpose\Python\instagage.py", line 4, in
session.login()
File "C:\Users\Refentse\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\instapy\instapy.py", line 475, in login
self.followed_by = log_follower_num(self.browser, self.username, self.logfolder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered: