Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12
I don't know about the links in source code of the website because I'm not on my PC right now to inspect and experiment. But about users using SoloLearn API, some users had made their version of SoloLearn API using simple web scraping. I don't think there is any official playground API. I know about only 2. I neither remember the maker nor the repository name of one of them, but the other is OR!ON 📴 's sololearnlib. He has also made it into a Python package. https://github.com/Or-i0n/sololearnlib Unfortunately, the last time I checked, it was broken maybe due to the recent changes to SoloLearn's website. BTW, Mr. Rahul it is not illegal to do so as far as I know. All the asker of the question has done is check the source code of the website, which is easily done by Chrome, Firefox etc. dev tools as you mentioned and libraries like BeautifulSoup, Scrapy etc. Happy coding!
2nd Jan 2021, 12:25 PM
XXX
XXX - avatar
+ 8
In general, it is illegal(known as plagiarism ) to take ANY info from another site unless you are given permission to do so. That is either done in writing by the site’s owner, or if the site’s terms and conditions state you can do so. Otherwise, you are breaking the law. Note - When viewing webpage content via inspect element on Google Chrome you may not be viewing all of the copyright information and authors credits that are on the website. Be sure to view the page source (HTML) to get accurate insight into the credits and copyright. Simply viewing source code is not illegal work i think👍🏻 The Sololearn API is not publicly accessible there are other methods to get some partial information by making request for the HTML content of a user page 👍🏻 https://www.sololearn.com/discuss/551126/?ref=app For APIs Also visit https://github.com/public-apis/public-apis https://any-api.com/ Must visit here 👍🏻
2nd Jan 2021, 12:18 PM
Mr. Rahul
Mr. Rahul - avatar
+ 8
XXX Plz read my answer fully I am also saying simply inspecting or viewing source code is not illegal I think you are must aware of plagiarism👍🏻
2nd Jan 2021, 12:27 PM
Mr. Rahul
Mr. Rahul - avatar
+ 6
Mirielle I found something on github Have a look.. A collection of APIs that u can use https://github.com/public-apis/public-apis
2nd Jan 2021, 12:35 PM
Mr. Rahul
Mr. Rahul - avatar
+ 6
Mr. Rahul OP specifically asked if someone has public API for "Sololearn" and in response you're listing APIs that I am very much sure not for Sololearn.
2nd Jan 2021, 12:59 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 5
Mr. Rahul sorry. My bad, I thought you were saying that looking at the source code was illegal😅. Mirielle true. There are a lot of things that are not on SL's website. So scraping is not enough. Even I would love public API from SoloLearn's side. Although, they should not allow changes to be made, like commenting, making codes etc. using the API or else bots will be all over their API.
2nd Jan 2021, 12:37 PM
XXX
XXX - avatar
+ 5
Raj Chhatrala Plz read the post i included in my ans.. 👍🏻
2nd Jan 2021, 1:01 PM
Mr. Rahul
Mr. Rahul - avatar
+ 3
Krish The simple way to get profile pic of sololearn is = https://api.sololearn.com/uploads/avatars/19973652.jpg Here you have to insert your id before .jpg
3rd Jan 2021, 3:42 PM
Mr. Rahul
Mr. Rahul - avatar
+ 3
Mr. Rahul check my code I have did the same that only I tried to explain with my code example. William Ainley this is a sololearn api which redirect the page to an image of the user's profile pic (whose I'd is given)
3rd Jan 2021, 4:19 PM
Krish
Krish - avatar
+ 3
Krish Its my id I have given a simple link to get ones profile image : )
3rd Jan 2021, 4:34 PM
Mr. Rahul
Mr. Rahul - avatar
+ 2
Mirielle There is a sololearn api that exists api.sololearn.com But it is not publicly available and no docs is available to understand the api But some people use it to get the sololearn profile pic. Like I have used it in my code https://code.sololearn.com/WsFHboT6zPh7/?ref=app
3rd Jan 2021, 3:04 PM
Krish
Krish - avatar
+ 1
Sololearn API for developers I inspected the sololearn website (HOMEPAGE) and found a comment of some urls supposed to be a public API for playground, authentication etc but none of them actually works. I proceeded to many other pages on the website and they won't work. I've seen other users using for example the playground api and I'm wondering where they got the link from? Does the SL developers provide any public API for other developers and where can I find them? Looking forward to your answers and happy 😄 new year
3rd Jan 2021, 3:10 PM
Ashmit Pandey
3rd Jan 2021, 7:18 PM
Mr. Rahul
Mr. Rahul - avatar
0
If you don't have anything relevant to say, please don't post anything! Comment and discussion sections on Sololearn are full of garbage and it takes considerable effort to extract useful posts from them. I'm concerned about Ashmit Pandey, Adel Benaida, CHETTI_Prod, Elyor Ochilov
19th Jun 2023, 3:04 PM
David “Ferenczy” Rogožan
David “Ferenczy” Rogožan - avatar
3rd Jan 2021, 3:10 PM
Ashmit Pandey
- 5
yes it is
4th Jan 2021, 5:44 AM
Adel Benaida
Adel Benaida - avatar
- 6
Hi
3rd Jan 2021, 6:01 PM
CHETTI_Prod
CHETTI_Prod - avatar
- 6
Href
3rd Jan 2021, 7:49 PM
Elyor Khaitov
Elyor Khaitov - avatar