Linking command in SNAP!

I am doing a school project for AP CSP, and I am trying to link external websites to my sprites. However, when I use the “URL” button, I am unable to get it to open anything. Can someone please help me link an external website to a sprite on my project?

That should work! (You can drag that block into Snap!, it will put the block in your code)

Ok, thank you!

By the way; you can mark posts as a “solution”, so people can know that your problem has been solved

It’s actually not working for me.. do I have to input something else? Or do I have to modify the URL?

Can you share your project

https://snap.berkeley.edu/project?username=ahana&projectname=BETTETRTETRTR%20shopping%20list

Don’t mind if it has bugs, it is for an APCSP project! I am trying to link the “Taco Bell Crunchwrap Supreme” to the Taco Bell website.

Oh, and the words to get in are “Lunch” and “Eat”

Whoops! Let me make it public

Ok, you should be able to view it now

tl;dr

the open [https:// V] [scratch.mit.edu] :: sensing block thought you were trying to open the url “https://” because (url [https://www.tacobell.com/food/nachos/nachos-bellgrande]) was reporting nothing (its intended function is to report html from a url and it wasn’t recieving anything), and even if it had worked the way you meant for it to, it’d be trying to open “https://https://www.tacobell.com/food/nachos/nachos-bellgrande”


open [https:// V] (url [https://www.tacobell.com/food/nachos/nachos-bellgrande]) :: sensing
this block is the problem
i know (url [snap.berkeley.edu]) doesn’t exactly tell you its function, but it doesn’t pass the input as a specific url string, it actually loads the html from the site linked by the url

example

in other words, it’s not just a url reporter, it reports the actual site structure, and open [https:// V] [scratch.mit.edu] :: sensing doesn’t even need a variable to open a link, it just uses the inputs
another issue is that the first input of open [https:// V] [scratch.mit.edu] :: sensing (the “https://” part) is added to the beginning of the second input (the “scratch.mit.edu” part) so you don’t need to have https:// in the url or else the block will try to open the url “https://https://www.tacobell.com/food/nachos/nachos-bellgrande” which will definitely not work


p.s.

it was public, i just opened the project from your user page
whoops, just realized they’re different projects
however, if you were getting this error…
image
…then use the above information
otherwise, can you explain the problem further?

btw, please try to send everything in one message or edit your last one! this is not a live texting site and people usually don’t like being notified multiple times by a topic! i know you didn’t send too many messages, i’m just letting you know before you accidentally do :]

Your cypher is wrong both times.

it worked fine for me

?



You have to look in the code for those answers, as the cypher is incorrect.

oh that’s what you meant, my bad
but they’re not wrong, the prompts are just mistyped
Ciphers script pic
Ciphers script pic (1)
i swear i didn’t make a caesar cipher block just to prove a point!

So should I put -3 and -2 then? Also I am unsure of what I put in the link area if the https does not work properly.

Also can I use this block in my code it would really help

that would make sense, yeah

just put the link (without the https:// in front) in the second slot and keep the first drop-down set to the https:// option

sure, go ahead!