We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dddbc20 commit 276c85dCopy full SHA for 276c85d
main.py
@@ -64,7 +64,7 @@
64
driver.get(f'https://www.acmicpc.net/source/{sub_id}')
65
html = driver.page_source
66
soup = BeautifulSoup(html, 'html.parser')
67
- source = get_text(soup.find('textarea', {'name': 'source'}))
+ source = '\n'.join([get_text(line) for line in soup.find_all('pre', class_='CodeMirror-line')])
68
69
# Detect file extension
70
language_name = get_text(soup.find('table', class_='table').find_all('tr')[1].find_all('td')[7])
0 commit comments