Skip to content

Commit 276c85d

Browse files
committed
[bugfix] get code which all written not shorten/skipped
1 parent dddbc20 commit 276c85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
driver.get(f'https://www.acmicpc.net/source/{sub_id}')
6565
html = driver.page_source
6666
soup = BeautifulSoup(html, 'html.parser')
67-
source = get_text(soup.find('textarea', {'name': 'source'}))
67+
source = '\n'.join([get_text(line) for line in soup.find_all('pre', class_='CodeMirror-line')])
6868

6969
# Detect file extension
7070
language_name = get_text(soup.find('table', class_='table').find_all('tr')[1].find_all('td')[7])

0 commit comments

Comments
 (0)