Discuss Scratch

-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Sobble_Squad_425 wrote:

-cloudcoding- wrote:

-snip
you should probably start snipping the posts
oh yeah
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Knightbot63 wrote:

-cloudcoding- wrote:

(#29)

Knightbot63 wrote:

Username: Knightbot63
What you want: live view count
Describe more: I want a python code that gets a live view count that will constantly ping the server.
Coding language: Python (or IDLE)
Are you following this discussion: ye
Other: Other crap i need to put in
Umm taken can you specify which project to get the view count and where to put the info?
Project ID: 758884108
And just in a variable where the views are.
Done here is your completed order:
 
import time
import os
import scratchattach as scratch3
session = scratch3.Session('put your session id here', username="your username")
conn = session.connect_cloud("project to send data")
project = session.connect_project("project to get data from")
while True: 
  project.update()
  views = project.views
  conn.set_var('your var', views)
  time.sleep(1)

Last edited by -cloudcoding- (Nov. 17, 2022 22:17:08)

-YourLocalPhantom-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Username: Mic_hal16
Languages: Scratch
Experience: I have experience of making many unshared games.
Link to work: I don’t have any good work. I could share, but if this is needed I can make an example of work.
Specialties: RPG coding (level editors, scrolling, collisions etc. )
Link(s) to coding profile(s) (Not including scratch):
Knightbot63
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

-cloudcoding- wrote:

(#62)-snip-

You may need to fix the code?
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Knightbot63 wrote:

-cloudcoding- wrote:

(#62)-snip-

You may need to fix the code?
Hmm I will look into it
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Knightbot63 wrote:

-cloudcoding- wrote:

(#62)-snip-

You may need to fix the code?
Could you show me a whole screenshot of the code (black out your session Id)
msztr
Scratcher
100+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

hmm…
conn.set_var(views)
you specified what to set the variable to but you didn't specify WHICH variable…
i think this is it (i'm not sure)

Last edited by msztr (Nov. 18, 2022 16:08:35)

-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Mic_hal16 wrote:

Username: Mic_hal16
Languages: Scratch
Experience: I have experience of making many unshared games.
Link to work: I don’t have any good work. I could share, but if this is needed I can make an example of work.
Specialties: RPG coding (level editors, scrolling, collisions etc. )
Link(s) to coding profile(s) (Not including scratch):
Could you share a few examples of work?
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

msztr wrote:

hmm…
conn.set_var(views)
you specified what to set the variable to but you didn't specify WHICH variable…
i tthink this is it (i'm not sure)
You are absolutely right
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Knightbot63 wrote:

-cloudcoding- wrote:

(#62)-snip-

You may need to fix the code?
Done here is the finished product:
import time
import os
import scratchattach as scratch3
session = scratch3.Session('put your session id here', username="your username")
conn = session.connect_cloud("project to send data")
project = session.connect_project("project to get data from")
while True: 
  project.update()
  views = project.views
  conn.set_var('your var', views)
  time.sleep(5) 

Last edited by -cloudcoding- (Nov. 21, 2022 15:45:15)

Jareddddddd
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Username: jaredddddddd
Languages: english, french (not really fluent)
Experience: python, scratch
Link to work:
Fart - https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/687745030/
Scrolling engine - https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/677231434/
project from alt - https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/676154103/
Specialties: pen, scrolling
Link(s) to coding profile(s) (Not including scratch): none
-YourLocalPhantom-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

-cloudcoding- wrote:

Mic_hal16 wrote:

Username: Mic_hal16
Languages: Scratch
Experience: I have experience of making many unshared games.b
Link to work: I don’t have any good work. I could share, but if this is needed I can make an example of work.
Specialties: RPG coding (level editors, scrolling, collisions etc. )
Link(s) to coding profile(s) (Not including scratch):
Could you share a few examples of work?
I don’t have any ready examples of work but I can make some .
Knightbot63
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

-cloudcoding- wrote:

(#70)-snip-
I'll try it and see if it works.

Apparently, it stops after the third true.

Last edited by Knightbot63 (Nov. 18, 2022 14:42:05)

-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Knightbot63 wrote:

-cloudcoding- wrote:

(#70)-snip-
I'll try it and see if it works.

Apparently, it stops after the third true.
That is weird
Knightbot63
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Username: Knightbot63
What you want: A comment bot (NOT USED FOR SPAM, BUT ON MY PROFILE EVERY TIME A NEW FOLLOWER APPEARS)
Describe more: Ok, so I want it to where I comment on my profile everytime I get a new follower and make a count out of it saying "Knightbot63 has {followers} followers. Their last follower was {username}
Coding language: Python
Are you following this discussion: yes
Other: This may sound too difficult though.
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Knightbot63 wrote:

Username: Knightbot63
What you want: A comment bot (NOT USED FOR SPAM, BUT ON MY PROFILE EVERY TIME A NEW FOLLOWER APPEARS)
Describe more: Ok, so I want it to where I comment on my profile everytime I get a new follower and make a count out of it saying "Knightbot63 has {followers} followers. Their last follower was {username}
Coding language: Python
Are you following this discussion: yes
Other: This may sound too difficult though.
Social interactions such as following or commenting are not allowed to be done through python on scratch
Knightbot63
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

-cloudcoding- wrote:

(#76)

Knightbot63 wrote:

Username: Knightbot63
What you want: A comment bot (NOT USED FOR SPAM, BUT ON MY PROFILE EVERY TIME A NEW FOLLOWER APPEARS)
Describe more: Ok, so I want it to where I comment on my profile everytime I get a new follower and make a count out of it saying "Knightbot63 has {followers} followers. Their last follower was {username}
Coding language: Python
Are you following this discussion: yes
Other: This may sound too difficult though.
Social interactions such as following or commenting are not allowed to be done through python on scratch
ok.
TheCommCraft
Scratcher
500+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Job form
Username: TheCommCraft
Languages: Scratch, Python
Experience: Scratch: Very Good, Python: Good
Link to work: https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/713416518/, https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/630735602/, https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/713980536/
Specialties: Pen/Stamp Scratch Project, Basic Encrypted Client/Server Communication
Link(s) to coding profile(s) (Not including scratch): /
-cloudcoding-
Scratcher
1000+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

Jareddddddd wrote:

Username: jaredddddddd
Languages: english, french (not really fluent)
Experience: python, scratch
Link to work:
Fart - https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/687745030/
Scrolling engine - https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/677231434/
project from alt - https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/676154103/
Specialties: pen, scrolling
Link(s) to coding profile(s) (Not including scratch): none
Accepted!
TheCommCraft
Scratcher
500+ posts

◦°☆ Coding in a click, Grand Opening!! We need workers!! ☆°◦

TheCommCraft wrote:

Job form
Username: TheCommCraft
Languages: Scratch, Python
Experience: Scratch: Very Good, Python: Good
Link to work: https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/713416518/, https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/630735602/, https://scratch-mit-edu.ezproxy.canberra.edu.au/projects/713980536/
Specialties: Pen/Stamp Scratch Project, Basic Encrypted Client/Server Communication
Link(s) to coding profile(s) (Not including scratch): /
I will probably not be able to be online tomorrow.

Powered by DjangoBB