Discuss Scratch

cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

Hello! Welcome to The ScratchAttach Shop.
Here you can order code for the python extension, ScratchAttach.

Github Repo



Rules
No spamming.
Be polite.
We only accept orders for ScratchAttach (and maybe the cloud variable blocks in projects to connect to ScratchAttach.)
If you are going to order, please follow the topic (this is not required, just recommended so that you know when I finish it.)
Make sure to give credit for the code!
Read the rules.
Order Form
General Task: (what you want python to do)
Project Code: (if you want me to give you code for a scratch project if it will connect to a scratch project.)
PyGame: (if you want me to make it use PyGame)
Notes: (any important details about your order)
Pre-Made Code: (any code that you have already made and request that I use.)
Deadline: (deadline)

Last edited by cybersteve547 (May 24, 2024 07:31:10)


Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

Unfinished orders: (oldest to newest)

TheFarmy wrote:

General Task: make a currency
Project Code: yes 914707988
Notes: no
Pre-Made Code: no
Deadline: 31st of October

Fluffygamer_ wrote:

General Task: an infinite leaderboard
Project Code: https://scratch.mit.edu/projects/915624353/
PyGame: you can chose
Notes: there will be 1 cloud variable to send the encoded usernames, and one for the score. I'll do the encode/decode scripts by myself. If you have any questions, please ask to avoid misunderstandings.
Pre-Made Code: none, sorry
Deadline: If possible, in around 1 month, but anything under 4 months is ok.

Last edited by cybersteve547 (Nov. 23, 2023 07:22:12)


Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

Finished orders: (Newest to oldsest)

artemvideoscratch wrote:

General Task: take the scratch user id
import scratchattach as scratch3
def UserID(User):
    return(scratch3.get_user(User).id)

minecraftmanpp_tutor wrote:

Sort a list of griffpatch's followers by follows
import scratchattach as scratch3
# Initialize variables
user = scratch3.get_user("griffpatch") # Change this if you want to look at a different users followers
allfollowers = []
offset = 0
# Start the main loop
while True:
    # Get a list of followers
    for follower in user.followers(limit=40, offset=offset):
        # Initialize more variables
        followercount = follower.follower_count()
        username = follower.username
        # Sorts the followers
        i = 0
        reali = 0
        while reali < len(allfollowers):
            if followercount < allfollowers[i][0]:
                i += 1
            reali += 1
        # Checks if the list already contains that follower
        i2 = 0
        insert = True
        while i2 < len(allfollowers):
            if allfollowers[i2][1] == username:
                insert = False
            i2 += 1
        # Inserts the follower into the list
        if insert:
            allfollowers.insert(i, [followercount, username])
        
        # What you want to do with the followers
        print(len(allfollowers))
        print(allfollowers)
        print("\n")
    offset += 40

Last edited by cybersteve547 (Dec. 4, 2023 21:42:07)


Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

Reserved

Last edited by cybersteve547 (Nov. 23, 2023 07:21:55)


Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

Reserved

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

Reserved

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
undeterminstic
Scratcher
1000+ posts

The ScratchAttach Shop

General Task: (what you want python to do) sort a list of griffpatches followers by number of follows and make a plot
Project Code: (if you want me to give you code for a scratch project if it will connect to a scratch project.) no
Notes: (any important details about your order) no
Pre-Made Code: (any code that you have already made and request that I use.) no
Deadline: (deadline) asap

yes
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

minecraftmanpp_tutor wrote:

General Task: (what you want python to do) sort a list of griffpatches followers by number of follows and make a plot
Project Code: (if you want me to give you code for a scratch project if it will connect to a scratch project.) no
Notes: (any important details about your order) no
Pre-Made Code: (any code that you have already made and request that I use.) no
Deadline: (deadline) asap
hm, im not sure if i'm going to be able to make something like that ASAP. (plus, griffpatch has so many followers, it'll take forever to load.)

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
undeterminstic
Scratcher
1000+ posts

The ScratchAttach Shop

cybersteve547 wrote:

minecraftmanpp_tutor wrote:

General Task: (what you want python to do) sort a list of griffpatches followers by number of follows and make a plot
Project Code: (if you want me to give you code for a scratch project if it will connect to a scratch project.) no
Notes: (any important details about your order) no
Pre-Made Code: (any code that you have already made and request that I use.) no
Deadline: (deadline) asap
hm, im not sure if i'm going to be able to make something like that ASAP. (plus, griffpatch has so many followers, it'll take forever to load.)
As soon as possible not neccesarily fast just.

yes
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

hm, @minecraftmanpp_tutor, do you have PyGame?

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
undeterminstic
Scratcher
1000+ posts

The ScratchAttach Shop

cybersteve547 wrote:

hm, @minecraftmanpp_tutor, do you have PyGame?
yes although with I think we should do it with matplotlib

yes
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

minecraftmanpp_tutor wrote:

yes although with I think we should do it with matplotlib
whats matplotlib

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

TheFarmy wrote:

Hi could u make me a currency like blockbit or blockcoin? And make it mineable ill give a love and a follow to u
can you fill out the order form please?
also wdym by “mineable”

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

  • b
  • u
  • m
  • p

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
undeterminstic
Scratcher
1000+ posts

The ScratchAttach Shop

cybersteve547 wrote:

minecraftmanpp_tutor wrote:

yes although with I think we should do it with matplotlib
whats matplotlib
nevermind just give me raw data

yes
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

minecraftmanpp_tutor wrote:

General Task: sort a list of griffpatches followers by number of follows and make a plot
Project Code: no
Notes: no
Pre-Made Code: no
Deadline: asap

I've finished it!

import scratchattach as scratch3
# Initialize variables
user = scratch3.get_user("griffpatch") # Change this if you want to look at a different users followers
allfollowers = []
offset = 0
# Start the main loop
while True:
    # Get a list of followers
    for follower in user.followers(limit=40, offset=offset):
        # Initialize more variables
        followercount = follower.follower_count()
        username = follower.username
        # Sorts the followers
        i = 0
        reali = 0
        while reali < len(allfollowers):
            if followercount < allfollowers[i][0]:
                i += 1
            reali += 1
        # Checks if the list already contains that follower
        i2 = 0
        insert = True
        while i2 < len(allfollowers):
            if allfollowers[i2[1] == username:
                insert = False
            i2 += 1
        # Inserts the follower into the list
        if insert:
            allfollowers.insert(i, [followercount, username])
        
        # What you want to do with the followers
        print(len(allfollowers))
        print(allfollowers)
        print("\n")
    offset += 40

Last edited by cybersteve547 (Oct. 26, 2023 22:24:46)


Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

if topicdepth > 20:
    print("Bump")

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

dwnq
(read it updide down)

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme
undeterminstic
Scratcher
1000+ posts

The ScratchAttach Shop

cybersteve547 wrote:

dwnq
(read it updide down)
well said

yes
cybersteve547
Scratcher
86 posts

The ScratchAttach Shop

BUMP

Come visit my shop!



Keep on Scratching!

< ̄`ヽ       / ̄> this is lenny owl
 ゝ、 \ /<>ヽ,ノ /´ they are almost
  ゝ、 `( ( ͡° ͜ʖ ͡°) / extinct
     >  ,ノ put him everywhere
     ∠_,,\ to save his species

╭━━━━━╮ Help
╰┃ ┣▇━▇ meme dog take over
 ┃ ┃  ╰━▅╮ Scratch by pasting
 ╰┳╯ ╰━━┳╯ him in your profile
  ╰╮ ┳━━╯ or he will never
 be a meme

Powered by DjangoBB