1. Environment
python3.6
Libraries needed: re, os, requests
2. Introduction
Glory of Kings can be regarded as one of the more popular mobile games. There should be many people who have gone into the pit of pesticides. Our purpose today is to crawl the HD hero wallpapers of Glory of Kings, including the skins of these heroes. Nonsense, go!
3. Analysis
First, let's open the hero profile of the King's Glory
Then, daily F12 opens the browser's developer tools
You can see that a json data is returned here, which contains the hero's name (cname), skin name (skin_name), hero id (ename) The skin behind this id is useful
The URL of a specific hero, such as armor
The composition of this URL is http:/xxxxxxxx + hero's id (ename) + .shtml
Then there is the hero's skin. The method I found is relatively low. I recommend a place for everyone to learn and communicate. 719+139+688
The skin link of the dragon domain lord of armor (I will not put the link)
URL composition
xxxx+ hero's id (ename) / + hero's id (ename)-bigskin- (any number from 1-n, n represents the number of skins of the hero) + .jpg
4. Nice pictures
Icecrown Princess.jpg
A Midsummer Night's Dream.jpg
Supreme Treasure.jpg