Does anyone know why this keeps happening? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

Does anyone know why this keeps happening?

I want to get pics from a website (https://miraculousladybug.fandom.com/wiki/Gabriel_Agreste) and as long as l copy the link on that web page, l can get the pics. But if l go to the specific gallery (https://miraculousladybug.fandom.com/wiki/Gabriel_Agreste/Gallery/Miscellaneous), the image doesn't load when l run my code. I've checked and double-checked that my code doesn't have any errors, so l don't know why this happens. Example of one of my codes: https://code.sololearn.com/W2Wv4HrbP55d/?ref=app

18th Aug 2023, 9:35 PM
Bloopjay
Bloopjay - avatar
15 ответов
+ 1
The second link is not an image. Images typically end with "jpg" or "png", etc.
18th Aug 2023, 9:42 PM
Lisa
Lisa - avatar
+ 1
Bloopjay , To make the image load in your web in SoloLearn or your web "IDE", you will need an image host source, and the "address" of the image, which contains the .jpg or .png, etc thingy at the end I suggest you to use this site for getting image url: https://imgbb.com/ I have watched Miraculous Ladybug before, it is a really cool show from France! Cat Noir's my favorite character.
19th Aug 2023, 1:34 AM
Dragon RB
Dragon RB - avatar
+ 1
Dragon RB, thanks! Unfortunately, l don't really want to go through all the trouble of making an account just to get a few pictures to code in. I appreciate it though😊! Do you know of any other way to get those .jpg end things?
19th Aug 2023, 1:40 AM
Bloopjay
Bloopjay - avatar
0
Hm, l did notice that. But it should have one of those since I'm getting it's an image, right? That's why I'm so confused.
18th Aug 2023, 9:54 PM
Bloopjay
Bloopjay - avatar
0
No, it is just the size where the gallery is.
18th Aug 2023, 10:02 PM
Lisa
Lisa - avatar
0
So then how do l get pictures from that site?
18th Aug 2023, 10:08 PM
Bloopjay
Bloopjay - avatar
0
Click on the picture, observe the ending of the url and watch out for image formats
18th Aug 2023, 10:11 PM
Lisa
Lisa - avatar
0
When l click and hold on the picture, l don't find the option to look at the direct url for the picture. The only one l can get is the one that leads to the site itself.
18th Aug 2023, 10:18 PM
Bloopjay
Bloopjay - avatar
0
Bloopjay You don't need to make an account for this process. Just click "Start Uploading" and do your stuff.
19th Aug 2023, 1:41 AM
Dragon RB
Dragon RB - avatar
0
Oh sorry, l think l accidentally clicked on an ad then. But I'm a little unsure about how to use the site. And yeah, l like Cat Noir too! I just feel so bad for him after all he's been through.
19th Aug 2023, 1:46 AM
Bloopjay
Bloopjay - avatar
0
Bloopjay You can look up for tutorials on how to use the site if you don't know how to use it.
19th Aug 2023, 2:28 AM
Dragon RB
Dragon RB - avatar
0
Ah, okay. Thanks so much! Once l figure out how to use it, I'll be coding in so many Miraculous pictures. 😁
19th Aug 2023, 3:09 PM
Bloopjay
Bloopjay - avatar
0
You might need to check back on the URL specified
20th Aug 2023, 5:43 PM
Adegoke M Adewale
Adegoke M Adewale - avatar
0
You can always inspect the source code. For example, in Google Chrome you can 'right click > inspect' while hovering on top of the image and the inspection window will open. The URL of the image will already be highlighted. There may be extra data attached to the URL but you can remove anything after .png or .jpg. This is used to pass data along that may be used elsewhere in the site such as a gallery script. https://code.sololearn.com/WC4zR7aeQQih/?ref=app You can link to just about anything on the internet. That's why we call it the web :)
20th Aug 2023, 5:53 PM
Keith
Keith - avatar
0
Keith Driscoll, thanks! I'll try that next time!
20th Aug 2023, 7:21 PM
Bloopjay
Bloopjay - avatar