Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
 def download_problem_content_raw_html(self, problem: Problem) -> str:
     resp = self._request(problem.get_url())
     return resp.text