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

b"invalid literal for int() with base 10: '262\\nfollowers'" #6803

Open
thegreatref opened this issue Apr 11, 2024 · 3 comments
Open

b"invalid literal for int() with base 10: '262\\nfollowers'" #6803

thegreatref opened this issue Apr 11, 2024 · 3 comments

Comments

@thegreatref
Copy link

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)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@jglatts
Copy link

jglatts commented Apr 11, 2024

@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

@csr13
Copy link

csr13 commented Apr 19, 2024

This has to do with the text that it's being obtained, you need to modify source code ... stop using the function format_number with the same browser select element, check utils.py, you can fix this, but there is another bug later on .. which I am stuck on that is, there is no window._sharedData to pull extra profile data, on getUserData function, also on utils.py

@jglatts
Copy link

jglatts commented Apr 20, 2024

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.

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