TimMcCool / scratchattach

Scratch API wrapper with support for almost all site features and cloud requests framework
MIT License
174 stars 43 forks source link

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

Open Zocker-Welt opened 1 week ago

Zocker-Welt commented 1 week ago
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

TheCommCraft commented 1 week ago

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: ***@***.***>
Zocker-Welt commented 1 week ago

Why would scratch ip ban me????

TimMcCool commented 3 days ago

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

TheCommCraft commented 3 days ago

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: @.***>