Method to scrape a single problem
(self)
| 464 | raise NotImplementedError |
| 465 | |
| 466 | def scrape_problem(self): |
| 467 | """ |
| 468 | Method to scrape a single problem |
| 469 | """ |
| 470 | contest = '' if self.site == 'spoj' else self.contest |
| 471 | print('Fetching problem %s-%s from %s...' % (contest, self.problem, self.site)) |
| 472 | req = Utilities.get_html(self.build_problem_url()) |
| 473 | inputs, outputs = self.parse_html(req) |
| 474 | Utilities.store_files(self.site, self.contest, |
| 475 | self.problem, inputs, outputs) |
| 476 | print('Done.') |
| 477 | |
| 478 | def fetch_html(self, link): |
| 479 | r = rq.get(link) |
no test coverage detected