nileshsah / harwest-tool

A one-shot tool to harvest submissions from different OJs onto one single VCS managed repository http://bit.ly/harwest
MIT License
130 stars 15 forks source link

Support for Atcoder #9

Closed s-i-d-d-i-s closed 3 years ago

s-i-d-d-i-s commented 3 years ago

So, the workflow is pretty much the same.

Instead of Codeforces API i use, Kenokooo API for Atcoder to fetch all submissions, and then use BeautifulSoup to Scrape it.

Some of the changes i did

  1. Added a AtcoderWorkflow which does the same job as of CodeforcesWorkflow
  2. the get_user_submissions has an extra key now, which is "platform" because Readme can't be generated for all platforms in the same way, for e.g Atcoder lacks a Tag system for problems

Some more things like arguments etc, you can review them as well

Here is a sample repo

nileshsah commented 3 years ago

This is just amazing @s-i-d-d-i-s! Thank you so so much for working over it! Taking a look at the proposed changes :)

nileshsah commented 3 years ago

Hey @s-i-d-d-i-s! Thanks a ton again for contributing! The changes look all fine. I have some bandwidth to work on it today so I'll merge your changes and refactor things a bit to extract out a common workflow interface. I just might revert the changes for the Codeforces page limit at the moment to keep it in parity with the actual submissions page on Codeforces but will bring it back if more people complain, maybe with an additional --all argument. Hope that works?

s-i-d-d-i-s commented 3 years ago

yeah sure!