scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

text = text.split("Followers (")[1]

Open Zocker-Welt opened this issue 1 year ago • 4 comments

Traceback (most recent call last):
  File "C:\Users\Misha\AppData\Local\Programs\Python\Python312\Lib\site-packages\scratchattach\cloud_requests.py", line 116, in call_request
    output = req_obj["on_call"](*arguments) # Calls the request function and saves the function's returned data in the output variable
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Misha\Desktop\Scratch Library\cat_stats.py", line 63, in user_stats
    user_stats.append(str(user.follower_count())) # Follower count
                          ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Misha\AppData\Local\Programs\Python\Python312\Lib\site-packages\scratchattach\user.py", line 180, in follower_count
    text = text.split("Followers (")[1]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

This is not my error. Why does this happen, I re-installed scratchattach

Zocker-Welt avatar Sep 16 '24 16:09 Zocker-Welt

It means that you might be ip-blocked or that for some reason your profile page doesn't have a Follower count

Zocker-Welt @.***> schrieb am Mo., 16. Sept. 2024, 18:35:

Traceback (most recent call last): File "C:\Users\Misha\AppData\Local\Programs\Python\Python312\Lib\site-packages\scratchattach\cloud_requests.py", line 116, in call_request output = req_obj"on_call" # Calls the request function and saves the function's returned data in the output variable ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Misha\Desktop\Scratch Library\cat_stats.py", line 63, in user_stats user_stats.append(str(user.follower_count())) # Follower count ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Misha\AppData\Local\Programs\Python\Python312\Lib\site-packages\scratchattach\user.py", line 180, in follower_count text = text.split("Followers (")[1] ~~~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range

This is not my error. Why does this happen, I re-installed scratchattach

— Reply to this email directly, view it on GitHub https://github.com/TimMcCool/scratchattach/issues/239, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZVKFKXCOA4VP2GQDQDZW4CDZAVCNFSM6AAAAABOJVV5GOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDQOJTHEZDENA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TheCommCraft avatar Sep 16 '24 17:09 TheCommCraft

Why would scratch ip ban me????

Zocker-Welt avatar Sep 17 '24 11:09 Zocker-Welt

Maybe it fails because the followers page is returned in another language (shouldn't happen tho, since the langauge cookie is set to en)

TimMcCool avatar Sep 25 '24 12:09 TimMcCool

Yeah, that's what I thought, so it must be an ipban or maybe the person doesn't have any followers yet

Tim @.***> schrieb am Mi., 25. Sept. 2024, 14:09:

Maybe it fails because the followers page is returned in another language (shouldn't happen tho, since the langauge cookie is set to en)

— Reply to this email directly, view it on GitHub https://github.com/TimMcCool/scratchattach/issues/239#issuecomment-2373903548, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZTWKWBRN6VLGWODC7TZYKRW3AVCNFSM6AAAAABOJVV5GOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTHEYDGNJUHA . You are receiving this because you commented.Message ID: @.***>

TheCommCraft avatar Sep 25 '24 12:09 TheCommCraft

Does the problem still happen? Closing this because of inactivity

TimMcCool avatar Nov 08 '24 13:11 TimMcCool