Today, I saw a <get 5ige website music> written by Eddy using VC. I felt good. I also wrote one for python on the rise, so I should be familiar with python.
Right-click the source code of the webpage. Note: you cannot download it directly. You need to download it using thunder or tornado. In addition, many websites, including videos, that are not in the source code, can use Google's Chrome browser's developer tool to sniff out the truth.
For example: http://voice.5ige.cn/ilmusic/voice/viewer.do? Artist = 4150.
True: http://fs.5ige.cn/fs/media/4150/1343096404845.mp3
Python code:
#! /Usr/bin/Python
#-*-Coding: UTF-8 -*-
"'
Created on 2012-8-30
@ Author: onebody
Parse 5ige.cn MP3 website
"'
Import urllib
Def parse (URL ):
Result = ""
Content = urllib. urlopen (URL). Read ()
# Print content
If Len (content)> 0:
I = content.find(registrant ″)
If I> = 0:
TMP = content [0: I + 4]. Strip ()
J = TMP. Find ("MP3:")
TMP = TMP [J + 6: Len (TMP)]. Strip ()
Result = TMP
Return result
Mp3_filename = parse ("http://voice.5ige.cn/ilmusic/voice/viewer.do? Artist = 4150 ″)
Source: http://fcjblog.com/python-get-5ige-website-music-download-python-version