Convert your NetEase Music (网易云音乐) playlists to Spotify format with proper artist name handling and formatting. This tool helps bridge the gap between Chinese and Western music platforms by:
- Converting Chinese artist names to their English equivalents
- Reformatting song entries for Spotify's import tool
- Handling multiple artists and special characters
- Providing pinyin transliteration for non-mapped artists
# Clone the repository
git clone https://github.com/yourusername/netease-to-spotify
cd netease-to-spotify
# Install dependencies
pip install -r requirements.txt
# Run the converter
python song_formatter.py
- Python 3.6+
pypinyin
package- Input text file (
paste.txt
) containing your NetEase Music playlist
- Ensure you have Python 3.6+ installed
- Install required packages:
pip install pypinyin
- Visit NetEase2Text
- Input your NetEase Music playlist URL
- Copy the extracted song list
- Save it to
paste.txt
in the project directory
python song_formatter.py
The formatted list will be saved to formatted_songs.txt
- Go to Spotlistr
- Paste the contents of
formatted_songs.txt
- Click "Search for Songs"
Input (paste.txt
):
晚婚 (Live) - 谭维维
Young And Beautiful - Lana Del Rey
纤维 - 林忆莲
Output (formatted_songs.txt
):
Lana Del Rey - Young And Beautiful
Sandy Lam - 纤维
谭维维 (Tan Weiwei) - 晚婚 (Live)
Add or modify artist name mappings in song_formatter.py
:
self.artist_mapping = {
"方大同": "Khalil Fong",
"王力宏": "Leehom Wang",
"林俊杰": "JJ Lin",
# Add more mappings here
}
- Chinese-English artist name mapping
- Pinyin conversion for unmapped Chinese names
- Multiple artist handling
- Special character cleanup
- Error handling for malformed entries
class SongFormatter:
def __init__(self) # Initialize mappings
def is_chinese(self, text) # Detect Chinese characters
def is_english(self, text) # Check for English text
def get_artist_name(self, artist) # Process artist names
def parse_song_line(self, line) # Parse individual entries
def format_songs(self, text_input) # Main processing function
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement
) - Make your changes
- Commit (
git commit -am 'Add new feature'
) - Push (
git push origin feature/improvement
) - Create a Pull Request
- Add more artist name mappings
- Improve special character handling
- Add direct Spotify API integration
- Support more input formats
- Add batch processing capability
- Some Chinese songs might not be available on Spotify
- Artist name matches might need manual verification
- Special characters in song titles may affect matching
This project is licensed under the MIT License - see the LICENSE file for details.
- NetEase2Text for playlist extraction
- Spotlistr for Spotify import functionality
- pypinyin for Chinese character conversion
- Create an issue for bug reports or feature requests
- Pull requests are welcome
Note: This tool is not affiliated with NetEase Music or Spotify. Use responsibly and in accordance with the platforms' terms of service.