Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchclient - A scratch API wrapper for python
- wvj
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
help. i keep getting a syntaxerror every time i try installing this package. maybe it's an issue with my python install becausetrydidn't work eitherpip install requests
py -m pip install requests
- Chiroyce
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
try this -
pip3 install requests
- Maximouse
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
This should behave exactly the same as typing “pip install scratchclient” into the terminal. The issue might be that kccuber isn't trying to run the command in the right place.help. i keep getting a syntaxerror every time i try installing this package. maybe it's an issue with my python install becausedidn't work eitherpip install requests(src)import os os.system('pip install scratchclient')
- Chiroyce
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
This should behave exactly the same as typing “pip install scratchclient” into the terminal. The issue might be that kccuber isn't trying to run the command in the right place.Yep, @kccuber open up command prompt and run this
pip install scratchclient
pip3 install scratchclient
- NFlex23
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
What's the point of the share() method of session.get_project(id)? It could never be called since the ID would appear to be invalid.
- Chiroyce
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
What's the point of the share() method of session.get_project(id)? It could never be called since the ID would appear to be invalid.hmm… but since we're logged in it may work
- NFlex23
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
Also, would it be possible to implement:
Since you can set the thumbnail of a project and the title of a studio, I thought it would be possible.
session.get_project(id).set_title("Text")
Last edited by NFlex23 (June 27, 2021 14:30:55)
- NFlex23
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
What's the point of the share() method of session.get_project(id)? It could never be called since the ID would appear to be invalid.hmm… but since we're logged in it may work
It doesn't work for me..
- NFlex23
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
Also, isn't working for me.
session.get_user("NFlex23").profile.set_status("This text was made with ScratchClient")
- Touchcreator
-
Scratcher
500+ posts
scratchclient - A scratch API wrapper for python
my code wont even run, i can only type in console
- ScratchCatHELLO
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
my code wont even run, i can only type in console
…clarify?
- Chiroyce
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
my code wont even run, i can only type in consolesave the file with the extension of .py, for example -
main.py
- ScratchCatHELLO
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
help. i keep getting a syntaxerror every time i try installing this package. maybe it's an issue with my python install becausetrydidn't work eitherpip install requestspy -m pip install requests
py?!
- ScratchCatHELLO
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
my code wont even run, i can only type in consolesave the file with the extension of .py, for example -then double click on the file in file explorer / findermain.py
I think you have to run them via terminal or command prompt
- Maximouse
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
py?!On Windows py is the “Python Launcher” that can be used even if Python is not in the PATH.
- Chiroyce
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
I think you have to run them via terminal or command promptyeah do this then
cd {folder_path_for_file}
python {FILENAME}.py- JackK211424
-
Scratcher
500+ posts
scratchclient - A scratch API wrapper for python
So I fixed my ssl error by reinstalling python. If anybody else has this issue try this first.
(Oh the joys of when you spend hours trying to figure something out and you just have to take 30 seconds to fix the issue in the end)
(Oh the joys of when you spend hours trying to figure something out and you just have to take 30 seconds to fix the issue in the end)
- JackK211424
-
Scratcher
500+ posts
scratchclient - A scratch API wrapper for python
I found what I think is kinda a strange behavior.
With the set event variable.value is “☁ varName”
With the set_cloud_variable function the variable name can be “☁ varName” or “varName”
With the set event variable.value is “☁ varName”
With the set_cloud_variable function the variable name can be “☁ varName” or “varName”
- Raihan142857
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
I found what I think is kinda a strange behavior.Why is that strange behavior? That's intentional.
With the set event variable.value is “☁ varName”
With the set_cloud_variable function the variable name can be “☁ varName” or “varName”
- ScratchCatHELLO
-
Scratcher
1000+ posts
scratchclient - A scratch API wrapper for python
I found what I think is kinda a strange behavior.
With the set event variable.value is “☁ varName”
With the set_cloud_variable function the variable name can be “☁ varName” or “varName”
this makes sense. I wouldn't want to have the ☁ symbol copied constantly
- Discussion Forums
- » Advanced Topics
-
» scratchclient - A scratch API wrapper for python