Change the name of the file when you enter the problem number.
- 해당 프로젝트는 Baekjoon Online Judge의 https://www.acmicpc.net/robots.txt 에 서술된 robots.txt를 준수합니다.
문제를 해결한 뒤 소스코드를 저장할 때, 해당 문제의 난이도(solved ac기준)와 문제 제목을 매번 쳐주기 귀찮았다.\ 그래서, 문제 번호를 입력하면 해당 문제에 대한 정보를 파일명에 기록할 수 있는 프로그램을 만들어보려한다.
- 크롤링: 해당 문제의 웹페이지를 크롤링하여 필요한 데이터[티어, 번호, 이름]를 얻는다.
- 파일 I/O: 얻은 데이터로 파일명을 바꾼다.
- GUI: GUI를 활용하여 편의성을 높인다.
- 문제 번호 및 제목, 설명은 BOJ에서 크롤링
- 문제 난이도(티어)는 solved ac에서 크롤링
PyQt5를 이용해 GUI 구현입력한 문제 번호에 따라 크롤링문제 티어, 제목, 설명 크롤링특정 디렉토리에 있는 파일명 한꺼번에 바꾸기- ~~파일을 특정 디렉토리로 복사 및 이름 바꾸기 ~~
- 멀티 프로세싱을 통해 수행시간 줄이기
requests.get()은 네트워크 연산이므로 수행 시간을 단축시키기 힘들다. 따라서, 파일 개수에 따라 multiprocessing을 통해 크롤링 이후의 처리를 단축시키는 방법을 이용해야 한다.