This article is written based on the Python3 crawler, the circle June just touch a day python written by the small demo.
Incoming group: 125240963 to get dozens of sets of PDFs Oh!
Pre-preparation
python3.x
(Requests,beautifulsoup,lxml)
Import
<ul class= "F-hide" ><li><a href= "/song?id=440208476" >that girl</a></li><li> <a href= "/song?id=29966565" >love Me like you do</a></li> "follow-up ellipsis" </ul>
For leaderboard analysis, the leaderboard matches the song list.
NetEase cloud Music exists an interface link to jump to the correct MP3 link
Http://music.163.com/song/media/outer/url?id=##########.mp3
There is a Urlretrieve method in the request, and there is no one in requests, it is easier to use request than requests (in fact, it is due to the use of requests in the development phase, without considering the request)
Urllib.request.urlretrieve (URL, ' d:/music/' + x[' name '].replace ('/', ') + '. mp3 ')
Because there are diagonal bars in the name of individual songs, replace with replace ('/', ').
Source:
Get to the bar!
NetEase Cloud Many songs have to copyright? Want a VIP? There is no limit to python in the face of this problem