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
1/2/2021 12:09:24 PMMirielle
32 AnswersNew Answer
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!
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 👍🏻
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👍🏻
Mirielle I found something on github Have a look.. A collection of APIs that u can use https://github.com/public-apis/public-apis
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.
Mr. Rahul sololearn API does not exist on that link
XXX activities like commenting cannot be scrapped ig, the form does not exist on the website and one of the reason why I'm requesting if there's a public API atleast from the actual developers
Mr. Rahul I think you need to learn more on "plagiarism". read my question again, i said PUBLIC API
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.
Raj Chhatrala Plz read the post i included in my ans.. 👍🏻
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
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)
Krish Its my id I have given a simple link to get ones profile image : )
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
how do u make an image a link? also how do u establish a image im having trouble img wont work😰
Ashmit Pandey Krish Elyor Ochilov CHETTI_Prod you all have wreck my post with irrelevant answers, please delete it cos It won't let me delete it, I'll report you if you don't
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
CHETTI_Prod plz dont Spam in Q/A thread https://www.sololearn.com/discuss/1316935/?ref=app
yes it is