Skip to content

Commit

Permalink
fix download sample cases from judge.u-aizu.ac.jp
Browse files Browse the repository at this point in the history
  • Loading branch information
hachi-88 committed Nov 3, 2018
1 parent 0f627b4 commit c84f952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onlinejudge/aoj.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def download_samples(self, session: Optional[requests.Session] = None) -> List[T
# get
resp = utils.request('GET', self.get_url(), session=session)
# parse
soup = bs4.BeautifulSoup(resp.content.decode(resp.encoding), utils.html_parser)
soup = bs4.BeautifulSoup(resp.content.decode(resp.encoding), 'html.parser')
samples = utils.SampleZipper()
for pre in soup.find_all('pre'):
log.debug('pre: %s', str(pre))
Expand Down

0 comments on commit c84f952

Please sign in to comment.