## Development tools

**Python version: **3.5.4

Related modules:

Requests module;

Bs4 module;

Win_unicode_console module;

Jieba module;

Matplotlib module;

XLWT module;

Numpy module;

Snownlp module;

And some modules that come with Python.

Environment set up

Install Python and add it to the environment variables. PIP installs the required related modules.

The main idea

Download ** all lyrics of the singer’s ** “Hot 50” ** based on the entered singer ID (for example, Jay’s ID is 6452) :

Now that we’ve found the API to get the lyrics, we don’t need to count the two POST parameters as before.

After obtaining these lyrics of the singer, we will conduct simple processing and analysis of these lyrics.

See the source code in the relevant files for specific ideas.

Using the demonstration

(1) Lyrics capture

Run the wyy_lyrics_downloader. py file in a CMD window.

PS:

Type the first few letters and then press Tab to complete them.

Using the demonstration

(1) Lyrics capture

Run the wyy_lyrics_downloader. py file in a CMD window.

PS:

Type the first few letters and then press Tab to complete them.

Don’t just type in letters…

(2) Simple analysis of lyrics (taking Jay Chou’s lyrics as an example)

Word frequency statistics and save in Excel:

Make an arbitrary graph:

Make lyrics cloud:

Simple sentiment analysis:

Most of the songs are over 0.5, so it seems that Jay’s songs are quite positive