{"id":16108721,"url":"https://github.com/aliosm/codeforces2pdf","last_synced_at":"2025-07-21T11:31:53.684Z","repository":{"id":90007269,"uuid":"137933420","full_name":"AliOsm/codeforces2pdf","owner":"AliOsm","description":"Light tool to extract CodeForces problems into PDF files","archived":false,"fork":false,"pushed_at":"2024-02-17T04:14:33.000Z","size":17,"stargazers_count":20,"open_issues_count":3,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T10:00:55.634Z","etag":null,"topics":["codeforces","competitive-programming"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliOsm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-19T19:00:47.000Z","updated_at":"2025-03-30T07:23:33.000Z","dependencies_parsed_at":"2024-10-27T17:28:27.080Z","dependency_job_id":null,"html_url":"https://github.com/AliOsm/codeforces2pdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AliOsm/codeforces2pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Fcodeforces2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Fcodeforces2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Fcodeforces2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Fcodeforces2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliOsm","download_url":"https://codeload.github.com/AliOsm/codeforces2pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Fcodeforces2pdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266291565,"owners_count":23906293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeforces","competitive-programming"],"created_at":"2024-10-09T19:28:09.440Z","updated_at":"2025-07-21T11:31:53.652Z","avatar_url":"https://github.com/AliOsm.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codeforces2pdf\nLight tool to extract CodeForces problems into PDF files\n\n## Motivation (Why I've written this?)\nI was training in someday and I was tired from sitting in front of the laptop, so I decided to download CodeForces problems in PDF, then print them and solve the problems on my bed!\n\nUnfortunately, there was not any good way to download CodeForces problems in PDF, I was looking for a PDF file that contains one problem with its statement only, without CodeForces` logo, tags or anything else.\n\nSo I've written this code in Python. However, this is my first Python code and I've extracted all CodeForces problems in PDFs, you can find them [here](https://github.com/AliOsm/PDF-CodeForces-Problems) (there are crazy facts about CodeForces in that repository).\n\nOk, to be honest, training was not the only thing motivated me to do this, I was looking for some small project to try Selenium on it, so this was the key of motivation.\n\nHave fun with your training.\n\n## Prerequisites\n- [Python 3.x](https://www.python.org/)\n- [Selenium](https://www.seleniumhq.org/)\n- [ChromeDriver](http://chromedriver.chromium.org/)\n- [WeasyPrint](https://weasyprint.org/)\n- The code in this repository tested on Ubuntu 18.04 LTS\n\n## Usage\nAfter downloading the files in this repository (codeforces2pdf.py - css.css), from terminal you can run them as follows:\n\n- Extract the entire contest problems in one PDF file:  \n\t`~ python3 codeforces2pdf.py \u003ccontest_id\u003e`\n\n- Extract one problem from a contest:  \n\t`~ python3 codeforces2pdf.py \u003ccontest_id\u003e \u003cproblem_character\u003e`\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/AliOsm/codeforces2pdf.\n\n## License\nThe project is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliosm%2Fcodeforces2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliosm%2Fcodeforces2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliosm%2Fcodeforces2pdf/lists"}