m-s-abeer / vjudge-to-oj

Import your vJudge solutions to actual online judges. Currently supports UVa, CodeForces, SPOJ, and CodeForces GYM.
MIT License
59 stars 10 forks source link

Spoj Added #3

Closed sazidnur closed 3 years ago

sazidnur commented 3 years ago

SPOJ added

Updated "Offline-problem-data" for CF & UVA

m-s-abeer commented 3 years ago

Can you please provide a brief explanation of your implementation for SPOJ? @sazidnur

sazidnur commented 3 years ago

login, code submission: using your method which is used in CF and UVA to login and submit code already solved data: i didn't find any good api to check which problem is already solved by an user on spoj, also i think this platform has no feature like an api return only json data, thats why i scrap all submission page of an specific user with BeautifulSoup4 and process this data to get unique AC submission (getSPOJSolveData() method on apiHandler) then checking which problem is already solved by this user and submitting which are not solved. everything is like CF and UVA