+ 2

Hey guys! Can anyone tell, how to use someone's profile picture in code?

<img src="https://api.sololearn.com/uploads/avatars/26286381.jpg" alt="Profile_pic" /> I have tried in this way. But it's not showing the image.

18th Dec 2022, 4:29 AM
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️ - avatar
3 Respuestas
+ 7
Sololearn API is not public. Some people found ways to capture and recycle some information from it such as the profile picture... but this is considered an exploit. Even if you found this pattern in some older code, Sololearn is free to change it any time without notice, because it is part of their internal infrastructure. You can try figuring out the correct pattern for the avatar URL, if you inspect the code of a profile page in a web browser. But this will not give you any guarantees that it would work in the future.
18th Dec 2022, 4:58 AM
Tibor Santa
Tibor Santa - avatar
+ 3
Go to someone's profile page, right click on the profile image to copy the image url. https://code.sololearn.com/WTSd358cm73O/?ref=app
19th Dec 2022, 5:21 AM
Calviղ
Calviղ - avatar
0
Calviղ Thanks for your suggestion👍
20th Dec 2022, 4:45 AM
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️ - avatar