def download_problem_content(self, problem: Problem) -> ProblemContent: resp = self._request(problem.get_url()) try: return ProblemContent.from_html(resp.text) except (InputFormatDetectionError, SampleDetectionError) as e: raise e
def download_problem_content_raw_html(self, problem: Problem) -> str: resp = self._request(problem.get_url()) return resp.text