Discuss Scratch

TimMcCool
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

scratchyjimjam wrote:

im having an error with this code
import scratchattach as scratch3
import random as r
import time

session = scratch3.login(“scratchyjimjam”, “*********”)
while True:
number = str(r.randint(100,690000000))
project = session.connect_project(number)
print(number)
dijeudhwuidh = project.author

i get this error:
Traceback (most recent call last):
File “C:\Users\scrat\Videos\userfinder.py”, line 10, in <module>
dijeudhwuidh = project.author
AttributeError: ‘PartialProject’ object has no attribute ‘author’

?

You can't get the author of a project that you can't access.

Read this for more information: https://github.com/TimMcCool/scratchattach#unshared-projects–scratch3partialproject

Last edited by TimMcCool (May 14, 2022 18:06:02)


Developer of scratchattach, the most popular Python Scratch API wrapper
coolcoder1213
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

Cool library.

Last edited by coolcoder1213 (May 14, 2022 18:12:47)


So, this is just a signature.

Scratchleton - Hamilton Mod

Cloud Stats Projects

My Profile:
coolcoder1213

I am great at cloud variables and Python.
YOSHIPAUL11
Scratcher
67 posts

scratchattach - A Scratch API wrapper (Python)

coolcoder1213 wrote:

Is this how Blocky was created?

Also, check out s2py, it has a cloud database feature. Maybe use that.
That.s a good question!

En dessous d'un trait lors d'un post il y a souvent une signature, et bien c'est ça!
YOSHIPAUL11 | ORA (x100) | 48194
Kaizokuou ni ore wa naru!
SansStudios
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

[removed, didn't see above posts]

Last edited by SansStudios (May 14, 2022 19:29:53)


scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

Socialix wrote:

youhan_school wrote:

-FreeEngines- wrote:

If replit shuts down, you're most likely using it wrongly
It doesn't 100% mean it is your fault. Maybe replit server has some problems… OR your computer needs a restart.
afaik scratch doesn't like requests coming from replit. i don't know though, i don't use replit.
replit uses shared ip's which is the reason that happens
-wolfs
Scratcher
6 posts

scratchattach - A Scratch API wrapper (Python)

project.id #Returns the project id
project.url #Returns the project url
project.author #Returns the username of the author
project.comments_allowed #Returns True if comments are enabled
project.instructions
project.notes #Returns the ‘Notes and Credits’ section
project.created #Returns the date of the project creation
project.last_modified #Returns the date when the project was modified the last time
project.share_date
project.thumbnail_url
project.remix_parent
project.remix_root
project.loves #Returns the love count
project.favorite s #Returns the project's favorite count
project.remix_count #Returns the number of remixes
project.views #Returns the view count
# —– —– #

I just copy paste it why

Wolf god
ScratchTheCoder12345
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

Anyone here use Python as their main coding language? Python is mine and I love it but I'm wondering if there is a better language out there. I know people are going to say well there is no one best coding language and I agree to this. The best coding language is one that has documentation lol.

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

scratchattach - A Scratch API wrapper (Python)

coolcoder1213 wrote:

Is this how Blocky was created?

Also, check out s2py, it has a cloud database feature. Maybe use that.
Please do not advertise other API's such as s2py on this fourm. It is designed for Scratchattach. Please do not lead other users to another API in a different API's suggestion

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

scratchattach - A Scratch API wrapper (Python)

pip doesnt exist is windows
help

Marc92020
i do stuff

image updates whenever i check
ScratchTheCoder12345
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

Marc92020 wrote:

pip doesnt exist is windows
help
Wait what-

Oh here https://phoenixnap.com/kb/install-pip-windows hope that helps

Last edited by ScratchTheCoder12345 (May 15, 2022 02:44:09)


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

scratchattach - A Scratch API wrapper (Python)

Marc92020 wrote:

pip doesnt exist is windows
help
Because you don’t have python installed










MagicCrayon9342
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

Marc92020 wrote:

pip doesnt exist is windows
help
You have to install python. Direct download, just run the file directly in your browser and install.

lemonade789465312
Scratcher
7 posts

scratchattach - A Scratch API wrapper (Python)

hmm
YOSHIPAUL11
Scratcher
67 posts

scratchattach - A Scratch API wrapper (Python)

763200kkdj wrote:

Blocky is probably the most futuristic game on Scratch, and I think it beat Griffpatch's games.
No Blocky's not the best games on Scratch there is still… AMONGUS (Among us trap in background

En dessous d'un trait lors d'un post il y a souvent une signature, et bien c'est ça!
YOSHIPAUL11 | ORA (x100) | 48194
Kaizokuou ni ore wa naru!
scratchyjimjam
Scratcher
84 posts

scratchattach - A Scratch API wrapper (Python)

TimMcCool wrote:

scratchyjimjam wrote:

im having an error with this code
import scratchattach as scratch3
import random as r
import time

session = scratch3.login(“scratchyjimjam”, “*********”)
while True:
number = str(r.randint(100,690000000))
project = session.connect_project(number)
print(number)
dijeudhwuidh = project.author

i get this error:
Traceback (most recent call last):
File “C:\Users\scrat\Videos\userfinder.py”, line 10, in <module>
dijeudhwuidh = project.author
AttributeError: ‘PartialProject’ object has no attribute ‘author’

?

You can't get the author of a project that you can't access.

Read this for more information: https://github.com/TimMcCool/scratchattach#unshared-projects–scratch3partialproject

that makes sense.
I'm gonna check if there is a way to ignore errors

Last edited by scratchyjimjam (May 15, 2022 11:25:13)


when green flag clicked
say [This is scratchyjimjam's signature] for (2) secs


-SCRATCHYJIMJAM-
Master_Bowser
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

ITS SCRATCH DAY GUYS!!!

Master_Bowser
DuyMinh3005
Scratcher
10 posts

scratchattach - A Scratch API wrapper (Python)

Time zone
DuyMinh3005
Scratcher
10 posts

scratchattach - A Scratch API wrapper (Python)

it's not Scratch day in my country
CodeMaat
Scratcher
13 posts

scratchattach - A Scratch API wrapper (Python)

Wow, this is great! You are a great Scratcher.

when green flag clicked
set [TimMcCool's followers v] to [102037384374308]

CodeMaat
Scratcher
13 posts

scratchattach - A Scratch API wrapper (Python)

I LOVE Blockly

Powered by DjangoBB