Package: prog-shojin-util
prog_shojin_util: Competitive Programming Problem FetcherFetch and organize competitive programming problems from various blogs with ease.Table of Contentsprog_shojin_util: Competitive Programming Problem FetcherTable of ContentsIntroductionFeaturesIntegration with atcoder-cliSupported Contest PlatformsInstallationExamplesOptionsAcknowledgementsContributingLicenseIntroductionprog-shojin-util(pshu) is a CLI utility tool tailored to extract competitive programming problems not directly from contest platforms, but from blogs and websites that curate high-quality problems, particularly from renowned platforms like AtCoder and Yukicoder. By sifting through these selected compilations, users can focus on problems that are recommended by the community, filtering them based on criteria like AC status, date range, and more.FeaturesUser-Based Filtering: Focus on problems based on a specific user's activity on platforms like AtCoder.Problem Status Filtering: Whether you're looking to find unsolved problems or revisit those you've already solved,prog_shojin_utilhas you covered.Flexible Output: Obtain your results in various formats such as JSON, Markdown, CSV, and more.Date-based Retrieval: Fetch problems available since a specific date for targeted practice sessions.Integration with atcoder-cliprog_shojin_utiloffers integration capabilities withatcoder-cli, an essential tool in the competitive programming community. By saving the fetched problems ascontest.acc.jsonin a directory and then usingatcoder-cliin that directory, you can streamline your problem-solving workflow.Create a Workspace for Practice:
Begin by setting up a designated workspace for the problems.mkdirpracticecdpracticeFetch Unsolved Problems with prog_shojin_util:
Fetch problems curated by a specific user (edge2992in this case) from a Qiita post and save them in a format suitable foratcoder-cli.pshu--atcoder-useredge2992\-thttps://qiita.com/e869120/items/f1c6f98364d1443148b3\--statusnot-ac\--outputacc_json>contest.acc.jsonIntegrate with atcoder-cli:
With thecontest.acc.jsonfile at hand, you can now use theatcoder-clito add the problems to your list of tasks.accadd-cinquireBy following these steps, you can efficiently extract unsolved problems from a curated list, then download and submit tests using atcoder-cli.Supported Contest PlatformsHere's a list of contest platforms supported byprog_shojin_util:Contest PlatformSupport StatusAtCoder✅Yukicoder✅[Other platforms]❌InstallationTo installprog_shojin_util, use the following command:pipinstallprog_shojin_utilEnsure you have a compatible Python version installed.ExamplesTo fetch unsolved problems from a specific URL for a given AtCoder user:pshu--atcoder-userjohn_doe\-thttps://example.com/problems\--statusnot-acTo obtain all problems in CSV format for a Yukicoder user:pshu--yukicoder-userjane_doe\-thttps://example.com/problems\--statusboth--outputcsvFor detailed options and configurations, consult theOptionssection.OptionsHere's a breakdown of the available options inprog_shojin_util:--atcoder-user TEXT: Specify the User ID for AtCoder to filter problems based on the user's activity.--yukicoder-user TEXT: Specify the User Name for Yukicoder to filter problems based on the user's activity.-t, --target TEXT: The base URL from which problem links will be fetched. This option is mandatory.--status [ac|not-ac|both]: Filter problems based on their AC (Accepted) status.ac: For problems already solved.not-ac: For unsolved problems.both: For all problems. The default isnot-ac.--output [json|markdown|csv|acc_json]: Choose the desired output format:json: Standard JSON format.markdown: Markdown format.csv: CSV format.acc_json: The format used by the atcoder-cli tool. The default isjson.--since DATE_FORMAT: Filter problems available since the specified date. Use the format 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. The default is set to 2012-01-01.--verbose: Enable this option for detailed logging, which aids in debugging.For command-line help, use the--helpoption.AcknowledgementsSpecial thanks to theAtCoder Problems APIandYukicoder APIfor providing invaluable data resources. Our tool,prog_shojin_util, greatly benefits from its capabilities.ContributingIf you'd like to contribute to the project, feel free to submit issues or pull requests.LicenseMIT