Discuss Scratch

jjs------
Scratcher
5 posts

A question about connecting Replit to Scratch

Is there way to get a repl (replit project) to properly connect to scratch (e.g the Scratch API) nowadays? Because I have a repl that forked from someone else's, and was designed to look for and return untaken scratch 4 character usernames to the user. And it must connect to scratch to order to work, of course, and I don't think it does that due to people telling me that scratch blocked replit's IP address(es). And I think this is also why it doesn't return ANY usernames at all, even without it having any errors at all. Any help is appreciated. Thanks!

Last edited by jjs------ (Jan. 4, 2023 00:37:20)

GIitchInTheMatrix
Scratcher
1000+ posts

A question about connecting Replit to Scratch

I believe you need to use a proxy to connect to the API, so its not Replit connecting to the API, but another API, collecting the data and sending it to the Repl. If you’re using Python, you can probably use PythonAnywhere
jjs------
Scratcher
5 posts

A question about connecting Replit to Scratch

GIitchInTheMatrix wrote:

I believe you need to use a proxy to connect to the API, so its not Replit connecting to the API, but another API, collecting the data and sending it to the Repl. If you’re using Python, you can probably use PythonAnywhere

I think the program already actually contains a link to a proxy that connects to the API somewhere in the scripts. And yes, I am using python. Can I possibly share my repl with you so that you can take a look at it and determine what's wrong with it that hinders the program from returning untaken 4 character usernames?
GIitchInTheMatrix
Scratcher
1000+ posts

A question about connecting Replit to Scratch

jjs------ wrote:

GIitchInTheMatrix wrote:

I believe you need to use a proxy to connect to the API, so its not Replit connecting to the API, but another API, collecting the data and sending it to the Repl. If you’re using Python, you can probably use PythonAnywhere

I think the program already actually contains a link to a proxy that connects to the API somewhere in the scripts. And yes, I am using python. Can I possibly share my repl with you so that you can take a look at it and determine what's wrong with it that hinders the program from returning untaken 4 character usernames?
If you’d like. But, i don’t know to much about Python, only basic stuff like printing and requesting data from a server(which i suppose you’re trying to do)
jjs------
Scratcher
5 posts

A question about connecting Replit to Scratch

GIitchInTheMatrix wrote:

jjs------ wrote:

GIitchInTheMatrix wrote:

I believe you need to use a proxy to connect to the API, so its not Replit connecting to the API, but another API, collecting the data and sending it to the Repl. If you’re using Python, you can probably use PythonAnywhere

I think the program already actually contains a link to a proxy that connects to the API somewhere in the scripts. And yes, I am using python. Can I possibly share my repl with you so that you can take a look at it and determine what's wrong with it that hinders the program from returning untaken 4 character usernames?
If you’d like. But, i don’t know to much about Python, only basic stuff like printing and requesting data from a server(which i suppose you’re trying to do)

Yep. Ok then, here's an invite link to my repl : https://replit.com/join/flialwvjbh-brentstudios
Thanks for agreeing to help me!
jjs------
Scratcher
5 posts

A question about connecting Replit to Scratch

bro i do not remember any of this
jjs------
Scratcher
5 posts

A question about connecting Replit to Scratch

WHEN WAS THIS

Powered by DjangoBB