Discuss Scratch

MonkeyBean2
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

brandontwinzone wrote:

Thanks for the package! I'll use it for my future python projects
Also, is it available on PyCharm? I don't have pip.
Try running
pip3


9NAwRfSR-%dWFS$a$g&zBMTj2?;jvS?L5%^X%qpCX|A<*paJ=lU07c)wmt$v{TxL5



scratchGui.timeTravel.year = '2020'
00ff00
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

codeywhizz wrote:

Can someone explain why when I type:

pip install scratchattach
import scratchattach as scratch3
session = scratch3.login(“username”, “password”)

It doesn't work and it says install is an invalid syntax

Thanks!
You run
pip install scratchattach
on your terminal/shell, not the python script.

#DontBanAIArt >:​D
codeywhizz
Scratcher
45 posts

scratchattach - A Scratch API wrapper (Python)

00ff00 wrote:

codeywhizz wrote:

Can someone explain why when I type:

pip install scratchattach
import scratchattach as scratch3
session = scratch3.login(“username”, “password”)

It doesn't work and it says install is an invalid syntax

Thanks!
You run
pip install scratchattach
on your terminal/shell, not the python script.
When I did that it says: ‘pip’ is not recognized as an internal or external command,
operable program or batch file

god286
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

codeywhizz wrote:

When I did that it says: ‘pip’ is not recognized as an internal or external command,
operable program or batch file
Try
pip3 install scratchattach
if that doesn't work try
python -m pip install scratchattach
If you use python with another command, change “python” to “py” or “python3” or whatever it is on your computer

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
codeywhizz
Scratcher
45 posts

scratchattach - A Scratch API wrapper (Python)

god286 wrote:

codeywhizz wrote:

When I did that it says: ‘pip’ is not recognized as an internal or external command,
operable program or batch file
Try
pip3 install scratchattach
if that doesn't work try
python -m pip install scratchattach
If you use python with another command, change “python” to “py” or “python3” or whatever it is on your computer
thank you bro, you're the 2nd person that has actually helped me

Knightbot63
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

Does scratchattach work with Scratch in Incognito? Because I got some errors.

edit: it works

Last edited by Knightbot63 (Oct. 24, 2022 20:51:03)


Working on an RPG. Consistently losing followers because of inactivity.
I head to forums time-to-time. Not as much as I used to.
electricboy6
Scratcher
5 posts

scratchattach - A Scratch API wrapper (Python)

I'm using this in a very basic form with extremely high-end hardware, and when I run it my watercooled CPU goes to 80 degrees celcius immediately. It says it is at 15% usage. When I run a stress test of the CPU, it goes to 70 degrees celcius at 100% load. Any idea what's happening?

Edit: I think it may be a problem with VS code. I'll try running it through python directly when I get home.
Edit 2: Not just VS code. No idea what's causing it.

Last edited by electricboy6 (Oct. 28, 2022 23:43:12)

MagicCrayon9342
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

electricboy6 wrote:

I'm using this in a very basic form with extremely high-end hardware, and when I run it my watercooled CPU goes to 80 degrees celcius immediately. It says it is at 15% usage. When I run a stress test of the CPU, it goes to 70 degrees celcius at 100% load. Any idea what's happening?
I have much less idea what you are asking than you have what's happening.

electricboy6
Scratcher
5 posts

scratchattach - A Scratch API wrapper (Python)

MagicCrayon9342 wrote:

electricboy6 wrote:

I'm using this in a very basic form with extremely high-end hardware, and when I run it my watercooled CPU goes to 80 degrees celcius immediately. It says it is at 15% usage. When I run a stress test of the CPU, it goes to 70 degrees celcius at 100% load. Any idea what's happening?
I have much less idea what you are asking than you have what's happening.
Great… well do you know if you can use this for multiple projects at the same time? It would make it much more convenient for me to be able to do that
jpdyba
Scratcher
53 posts

scratchattach - A Scratch API wrapper (Python)

I get this error, how i fix it?


scratchattach._exceptions.Response429: Your network is blocked or rate-limited by Scratch.

i'm a guy addicted to baller and other memes…
but i make awesome projects…
anyways…
BreadcatGames
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

jpdyba wrote:

I get this error, how i fix it?


scratchattach._exceptions.Response429: Your network is blocked or rate-limited by Scratch.
i think scratch blocked the IP of replit so if you're using that then that's why
(i think)

nintendo is my favorite indie company :3 they deserve all my money and i love them and will always buy a $60/yr subscription for 30 year old games!!!
TheSecondGilbert
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

codeywhizz wrote:

Can someone explain why when I type:

pip install scratchattach
import scratchattach as scratch3
session = scratch3.login("username", "password")

It doesn't work and it says install is an invalid syntax

Thanks!
You're not supposed to type “pip install scratchattach” on the interactive prompt (the place where you run Python). You had to do it on a command prompt:
C:\Users\You> pip install scratchattach
or this if it doesn't work:
C:\Users\You> py -m pip install scratchattach
Or a terminal:
$ pip install scratchattach
flashback to when I tried to install TensorFlow like that, good times :')

Hi! This is an alt of my main account.
I'm “back” from a 10-month hiatus.
I forgot the ways of the forums, so I might be wrong.
My first post!
codeywhizz
Scratcher
45 posts

scratchattach - A Scratch API wrapper (Python)

TheSecondGilbert wrote:

codeywhizz wrote:

Can someone explain why when I type:

pip install scratchattach
import scratchattach as scratch3
session = scratch3.login("username", "password")

It doesn't work and it says install is an invalid syntax

Thanks!
You're not supposed to type “pip install scratchattach” on the interactive prompt (the place where you run Python). You had to do it on a command prompt:
C:\Users\You> pip install scratchattach
or this if it doesn't work:
C:\Users\You> py -m pip install scratchattach
Or a terminal:
$ pip install scratchattach
flashback to when I tried to install TensorFlow like that, good times :')
Thanks but I figured it out I was supposed to type py instead

TimMcCool
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

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

Developer of scratchattach, the most popular Python Scratch API wrapper
codeywhizz
Scratcher
45 posts

scratchattach - A Scratch API wrapper (Python)

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

cat_the_870
Scratcher
18 posts

scratchattach - A Scratch API wrapper (Python)

Looks beneficial!
cat_the_870
Scratcher
18 posts

scratchattach - A Scratch API wrapper (Python)

when green flag clicked
forever
say [Scratchchattach]
end
infintyrussia_test
Scratcher
33 posts

scratchattach - A Scratch API wrapper (Python)

Hello!

Please who ever is interested ask me to join this studio:
https://scratch.mit.edu/studios/32353610/comments

Here we will be discussing how to stop cloud var hacking or fake setting using a python console.

There is one project right now which is mine. Please try and hack it!
https://scratch.mit.edu/projects/746454482

Once we have found a good enough way I will publish the code so that everyone can use it.
JloAu
Scratcher
31 posts

scratchattach - A Scratch API wrapper (Python)

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

JloAu

My best project : Windows 11 SE
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (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

Powered by DjangoBB