This Python script downloads all Kpop songs based on ARTIST from ilKPOP. It fetches search results and handles the download process with Requests and Selenium.
- Search by artist.
- Download all songs in a specific page automatically.
- Uses Chromium-based browser like Brave to remove pop-ups and ads.
- Command-line interface for flexibility.
- Python 3.8+
- Brave Browser (for no popups)
- Python packages:
requestsseleniumbeautifulsoup4webdriver-manager(optional, recommended)
Open Command Prompt, clone the repository and go to directory:
git clone https://github.com/Reno-03/ilkpop-downloader.git
cd ilkpop-downloaderCreate a Python Environment and activate it:
python -m venv .venv
.venv\Scripts\activate.batInstall all Python packages using:
pip install -r requirements.txtRun the script with:
python main.py --page=<PAGE_NUMBER> --search="<SEARCH_KEYWORD>"- Download page 1 results for Stray Kids:
python main.py --page=1 --search="Stray Kids"- Download page 2 results for BTS:
python main.py --page=2 --search="BTS"| Argument | Description | Default |
|---|---|---|
--page |
Page number of search results | 1 |
--search |
Search keyword (artist/song) | "Stray Kids" |
The downloaded songs are saved at:
/kpop_songs/<artist_name>/- Sends a GET request to
ilkpop.comto fetch search results. - Parses HTML with
BeautifulSoupto extract download links. - Retrieves the MP3 URL then downloads it using Requests.
- The downloaded file is renamed properly, including Korean characters.
- Repeats for all links on the search results page.
- Make sure Brave version and Brave version match.
- Pop-ups are automatically closed to avoid interruptions.
- The script currently runs in a visible browser window (not headless).
- Download all songs of an artist based on ALL pages.
- Download with multiple artist search queires.
- Filter the number of songs downloaded in a specific page.
