Discuss Scratch

Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

-cloudcoding- wrote:

I need help
Oh. Actually the profile comments API is made by me as the ScratchAPI didn't had any API endpoint to get the comments in JSON format.

It may give some errors. Let me try to fix it…

Also, no need to use login with cookie as the comments is only a GET request. But to get other requests from the Scratch API, you need to use “online ide cookie login”: https://github.com/Sid72020123/scratchconnect#using-scratchconnect-in-online-ides-like-replit
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

-cloudcoding- wrote:

I need help
Oh. Actually the profile comments API is made by me as the ScratchAPI didn't had any API endpoint to get the comments in JSON format.

It may give some errors. Let me try to fix it…

Also, no need to use login with cookie as the comments is only a GET request. But to get other requests from the Scratch API, you need to use “online ide cookie login”: https://github.com/Sid72020123/scratchconnect#using-scratchconnect-in-online-ides-like-replit
I found the problem! There was an error with the proxy which the comments API was using! I changed it.

Now it should work: https://scratch-comments-api.sid72020123.repl.co/user/?username=-cloudcoding-&limit=5&page=1
-cloudcoding-
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

Sid72020123 wrote:

-cloudcoding- wrote:

I need help
Oh. Actually the profile comments API is made by me as the ScratchAPI didn't had any API endpoint to get the comments in JSON format.

It may give some errors. Let me try to fix it…

Also, no need to use login with cookie as the comments is only a GET request. But to get other requests from the Scratch API, you need to use “online ide cookie login”: https://github.com/Sid72020123/scratchconnect#using-scratchconnect-in-online-ides-like-replit
I found the problem! There was an error with the proxy which the comments API was using! I changed it.

Now it should work: https://scratch-comments-api.sid72020123.repl.co/user/?username=-cloudcoding-&limit=5&page=1
Wait can I just run my code again? Sorry I looked at the code and I did not understand it? Btw for some reason repl.co is blocked but not replit.com
-cloudcoding-
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

-cloudcoding- wrote:

Sid72020123 wrote:

Sid72020123 wrote:

-cloudcoding- wrote:

I need help
Oh. Actually the profile comments API is made by me as the ScratchAPI didn't had any API endpoint to get the comments in JSON format.

It may give some errors. Let me try to fix it…

Also, no need to use login with cookie as the comments is only a GET request. But to get other requests from the Scratch API, you need to use “online ide cookie login”: https://github.com/Sid72020123/scratchconnect#using-scratchconnect-in-online-ides-like-replit
I found the problem! There was an error with the proxy which the comments API was using! I changed it.

Now it should work: https://scratch-comments-api.sid72020123.repl.co/user/?username=-cloudcoding-&limit=5&page=1
Wait can I just run my code again? Sorry I looked at the code and I did not understand it? Btw for some reason repl.co is blocked but not replit.com
So I did not push the link
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

-cloudcoding- wrote:

-cloudcoding- wrote:

Sid72020123 wrote:

Sid72020123 wrote:

-cloudcoding- wrote:

I need help
Oh. Actually the profile comments API is made by me as the ScratchAPI didn't had any API endpoint to get the comments in JSON format.

It may give some errors. Let me try to fix it…

Also, no need to use login with cookie as the comments is only a GET request. But to get other requests from the Scratch API, you need to use “online ide cookie login”: https://github.com/Sid72020123/scratchconnect#using-scratchconnect-in-online-ides-like-replit
I found the problem! There was an error with the proxy which the comments API was using! I changed it.

Now it should work: https://scratch-comments-api.sid72020123.repl.co/user/?username=-cloudcoding-&limit=5&page=1
Wait can I just run my code again? Sorry I looked at the code and I did not understand it? Btw for some reason repl.co is blocked but not replit.com
So I did not push the link
Ok! No problem. Yes, you can run your code again…
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

WojtekGame wrote:

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Great! But have you tested calling a simple GET request to the Scratch API from there?
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

WojtekGame wrote:

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Great! But have you tested calling a simple GET request to the Scratch API from there?
EDIT:Yes!
My cloud sandbox

(Do not read my secrets!)

Last edited by WojtekGame (Feb. 25, 2023 13:48:59)

Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

WojtekGame wrote:

Sid72020123 wrote:

WojtekGame wrote:

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Great! But have you tested calling a simple GET request to the Scratch API from there?
EDIT:Yes!
My cloud sandbox

(Do not read my secrets!)
Great! It works! But what are its limits? I can see only 20 sandboxes per free account or team

Also, it should support flask…
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

silvxrcat wrote:

Knightbot63 wrote:

Basilikos wrote:

Sid72020123 wrote:

Also, you are using the “post_comment” feature on Replit which will not work as already stated in the docs. You can only do “get” requests in replit and set cloud variables too!




I'm using Knightbot63's proxy though, that should work.
I don't recall a proxy that I made. Sid72020123 made it. It only supports get requests though. (still trying to find a way to support put through the proxy, tinkering with the code a lot)
you guys should use railway or heroku if you don't want to have a half-baked proxy shaking your requests.

or just run it yourselves on your own machines…
codesandbox: am i a joke to u?
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

WojtekGame wrote:

Sid72020123 wrote:

WojtekGame wrote:

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Great! But have you tested calling a simple GET request to the Scratch API from there?
EDIT:Yes!
My cloud sandbox

(Do not read my secrets!)
Great! It works! But what are its limits? I can see only 20 sandboxes per free account or team

Also, it should support flask…
note that ScratchConnect servers written in Python don't last too long.
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

WojtekGame wrote:

Sid72020123 wrote:

WojtekGame wrote:

Sid72020123 wrote:

WojtekGame wrote:

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Great! But have you tested calling a simple GET request to the Scratch API from there?
EDIT:Yes!
My cloud sandbox

(Do not read my secrets!)
Great! It works! But what are its limits? I can see only 20 sandboxes per free account or team

Also, it should support flask…
note that ScratchConnect servers written in Python don't last too long.
Oh! Then maybe replit is more better than codesandbox
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

WojtekGame wrote:

Sid72020123 wrote:

WojtekGame wrote:

Sid72020123 wrote:

WojtekGame wrote:

We can migrate from Replit to Codesandbox!
The reason is now it supports Python!
Great! But have you tested calling a simple GET request to the Scratch API from there?
EDIT:Yes!
My cloud sandbox

(Do not read my secrets!)
Great! It works! But what are its limits? I can see only 20 sandboxes per free account or team

Also, it should support flask…
note that ScratchConnect servers written in Python don't last too long.
Oh! Then maybe replit is more better than codesandbox
CodeSandbox can be also an option but it's your choice.
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Hello Everyone,

I just wanted to announce that my very important school exams are going to start from this coming Monday (27th of March, 2023). This exams will continue for over a month till 29th of March, 2023.

I won't be active during this period and I won't add any new features to the library or fix bugs

I also won't be able to answer the questions in this topic or help you with your code. Sorry for that.
-cloudcoding-
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

Hello Everyone,

I just wanted to announce that my very important school exams are going to start from this coming Monday (27th of March, 2023). This exams will continue for over a month till 29th of March, 2023.

I won't be active during this period and I won't add any new features to the library or fix bugs

I also won't be able to answer the questions in this topic or help you with your code. Sorry for that.
oh ok thanks
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Sid72020123 wrote:

Hello Everyone,

I just wanted to announce that my very important school exams are going to start from this coming Monday (27th of March, 2023). This exams will continue for over a month till 29th of March, 2023.

I won't be active during this period and I won't add any new features to the library or fix bugs

I also won't be able to answer the questions in this topic or help you with your code. Sorry for that.
ok
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

https://codesandbox.io/pricing?for=personal
Even though 20 public sandboxes for Teams, you can do Personal work instead that you can create infinite sandboxes.
WojtekGame
Scratcher
1000+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

autobump
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

This is a small note for the people who use my proxy hosted on deta.sh:

Due to recent updates on deta.sh, the team is deciding to stop the micros. The owners of the micros will have to migrate to deta.space and the micros will run till 1st of May, 2023. After that, my proxy will stop working.

After my exams, I will migrate/make new proxies for both the ScratchConnect library and the free proxy used by SUI. This will be done 15 days before the deadline. So, ScratchConnect can still be used on Replit!
Sid72020123
Scratcher
500+ posts

[UN-MAINTAINED] ScratchConnect v5.0 - Simple, Easy-to-use Python library to connect the Scratch API and much more!

Important Note:

Due to Replit's new egress limit, most of my APIs will be shut down (except SUI).

So, the comment API and forum API which this library uses will not work anymore

I will make a new API and host it on a serverless server like deta.sh (now deta.space) after my exams. Sorry.



Looks like I need to remove the websocket (live) status from the SUI API…

Last edited by Sid72020123 (March 24, 2023 09:07:45)

Powered by DjangoBB