+ 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.
3 odpowiedzi
+ 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.
+ 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
0
Calviղ
Thanks for your suggestion👍