Discuss Scratch

-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

codeywhizz wrote:

TimMcCool wrote:

Update v1.0.8

- Fixed a Cloud Requests bug that may have caused high CPU usage
Updating scratchattach to fix this bug is highly recommended
- Removed the broken search_comments function

It looks like the TwCloudConnection.get_var(“”) function is no longer working properly, I'm currently looking into it
ok, that's cool! btw do you know any api keys for youtube subscribers count
just generate one? and even if you for some reason are unable to get an api key for it, you could still use the public api anyways
TimMcCool
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

JloAu wrote:

Hi! This may be a dumb question but can we connect to the cloud of multiple projects at the same time in a single python program? Or how about the scratch cloud and the turbowarp cloud?
Thank you for your help
Yes, you can connect to multiple projects

Last edited by TimMcCool (Nov. 8, 2022 18:38:47)


My profile / Mein Profil: @TimMcCool
codeywhizz
Scratcher
41 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

How, also Youtube's one doesn't work for subs I think

JloAu
Scratcher
18 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

TimMcCool wrote:

JloAu wrote:

Hi! This may be a dumb question but can we connect to the cloud of multiple projects at the same time in a single python program? Or how about the scratch cloud and the turbowarp cloud?
Thank you for your help
Yes, you can connect to multiple projects
This is so nice! Thank you for replying me!

JloAu
My most famous project : ScratchOS
And my best project : ScratchOS 3.0
Learning to use ScratchAttach
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

codeywhizz wrote:

How, also Youtube's one doesn't work for subs I think
obviously youtube's one works for subs? how would you see someones subsriber count otherwise
codeywhizz
Scratcher
41 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

-FreeEngines- wrote:

codeywhizz wrote:

How, also Youtube's one doesn't work for subs I think
obviously youtube's one works for subs? how would you see someones subsriber count otherwise
I was looking at subscription sorry

df21
Scratcher
39 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

btw couldn't someone use scratchattach to hack someone else's scratch account using the login prompt and trying every possible password. for that reason i think scratchattach is dangerous. if this is possible plz fix this before it's too late


                            
Mast_Scratch
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

df21 wrote:

btw couldn't someone use scratchattach to hack someone else's scratch account using the login prompt and trying every possible password. for that reason i think scratchattach is dangerous. if this is possible plz fix this before it's too late
Tho you have a 10% of chance guessing passwords. And no one would try


massacoder
Scratcher
16 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

when i do
conn = session.connect_cloud(“760934612”)
i get
Traceback (most recent call last):
File “/Users/loydgreen/Documents/test.py”, line 5, in <module>
conn = session.connect_cloud(“760934612”)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_session.py”, line 247, in connect_cloud
return _cloud.CloudConnection(username = self._username, session_id = self.session_id, project_id = int(project_id))
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_cloud.py”, line 22, in __init__
self._connect(cloud_host=cloud_host)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_cloud.py”, line 77, in _connect
raise(_exceptions.ConnectionError)
scratchattach._exceptions.ConnectionError

-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

df21 wrote:

btw couldn't someone use scratchattach to hack someone else's scratch account using the login prompt and trying every possible password. for that reason i think scratchattach is dangerous. if this is possible plz fix this before it's too late
what? you can do that without scratchattach just aswell? you get timeouted after 3-4 attempts anyways
infintyrussia
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

From what I know I had my 5G network banned after 4 failed login attempts. These 4 login attempts aren't enough to break someone's password. And also I don't know why someone would want to do that. There is nothing on Scratch to steal also if you are worried about people being able to use a hosting service to have multiple IPs then Scratch has already banned most of those.

I don't think it's possible to hack someone's password/account.
Hope this helped.


TimMcCool
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

df21 wrote:

btw couldn't someone use scratchattach to hack someone else's scratch account using the login prompt and trying every possible password. for that reason i think scratchattach is dangerous. if this is possible plz fix this before it's too late
Scratch will ratelimit someone who tries to do that after a few attempts

My profile / Mein Profil: @TimMcCool
TimMcCool
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

Update v1.0.9

- Implemented Scratch's new project tokens
- Implemented TurboWarp's new cloud var guidelines
- Fixed user.get_comment_replies() and project.get_comment_replies()

Please report any bugs you find

Last edited by TimMcCool (Nov. 15, 2022 20:23:12)


My profile / Mein Profil: @TimMcCool
TimMcCool
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

massacoder wrote:

when i do
conn = session.connect_cloud(“760934612”)
i get
Traceback (most recent call last):
File “/Users/loydgreen/Documents/test.py”, line 5, in <module>
conn = session.connect_cloud(“760934612”)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_session.py”, line 247, in connect_cloud
return _cloud.CloudConnection(username = self._username, session_id = self.session_id, project_id = int(project_id))
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_cloud.py”, line 22, in __init__
self._connect(cloud_host=cloud_host)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_cloud.py”, line 77, in _connect
raise(_exceptions.ConnectionError)
scratchattach._exceptions.ConnectionError
Where are you running the code? You can't connect to cloud variables on pythonanywhere

Mast_Scratch wrote:

df21 wrote:

btw couldn't someone use scratchattach to hack someone else's scratch account using the login prompt and trying every possible password. for that reason i think scratchattach is dangerous. if this is possible plz fix this before it's too late
Tho you have a 10% of chance guessing passwords. And no one would try
way less than 10%

Last edited by TimMcCool (Nov. 15, 2022 20:25:06)


My profile / Mein Profil: @TimMcCool
infintyrussia
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

What are turbowarps new cloud vars guidlines?
Ok found it.
https://docs.turbowarp.org/cloud-variables

Last edited by infintyrussia (Nov. 15, 2022 23:53:33)



Mast_Scratch
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

Mast_Scratch wrote:

df21 wrote:

btw couldn't someone use scratchattach to hack someone else's scratch account using the login prompt and trying every possible password. for that reason i think scratchattach is dangerous. if this is possible plz fix this before it's too late
Tho you have a 10% of chance guessing passwords. And no one would try
way less than 10%

Yes 10 > x%


massacoder
Scratcher
16 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

TimMcCool wrote:

massacoder wrote:

when i do
conn = session.connect_cloud(“760934612”)
i get
Traceback (most recent call last):
File “/Users/loydgreen/Documents/test.py”, line 5, in <module>
conn = session.connect_cloud(“760934612”)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_session.py”, line 247, in connect_cloud
return _cloud.CloudConnection(username = self._username, session_id = self.session_id, project_id = int(project_id))
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_cloud.py”, line 22, in __init__
self._connect(cloud_host=cloud_host)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scratchattach/_cloud.py”, line 77, in _connect
raise(_exceptions.ConnectionError)
scratchattach._exceptions.ConnectionError

massacoder wrote:

TimMcCool wrote:

Where are you running the code? You can't connect to cloud variables on python anywhere

In the code window


Last edited by massacoder (Nov. 16, 2022 16:14:50)


xxxxxxx-70
Scratcher
60 posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
when green flag clicked
Knightbot63
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

xxxxxxx-70 wrote:

(#1318)
-snip-
Please don't blockspam.


ScratchTheCoder12345
Scratcher
100+ posts

scratchattach - A Scratch API wrapper | v1.0 released (Python)

How would I print out the project IDs of favorited projects from a user? For example if I favorited the project IDs 191959,917,915,etc I want my code to output 191959,917,915 but not sure how to do it.

Hello, I'm Brandon a Python developer who loves math and coding.
he/him
Feel free to message me with any questions

Powered by DjangoBB

Standard | Mobile