1. Environment
python3.6
Libraries needed: RE, OS, requests
2. Introduction
King Glory can be regarded as one of the more popular hand tours, there should be a lot of people into the pit of pesticides, we are today's purpose is to climb the glory of the king of high-definition heroes wallpaper, including these heroes of the skin, no nonsense, go!
3. Analysis
First, we open the hero's honor.
Then, the daily F12 opens the browser's developer tool
You can see that this returns a JSON data that contains the hero's name (CNAME), the skin name (Skin_name), the Hero ID (ename), and the skin behind the ID is useful.
A specific hero's URL, such as armored
This URL is composed of http:/xxxxxxxx + Hero ID (ename) +. shtml
Then is the hero's skin, I found the method is relatively low, recommend everyone a learning Exchange place 719+139+688
Armor of the Dragon Lords of the Skin link (link I will not release)
URL composition
xxxx+ Hero's ID (ename)/+ Hero ID (ename)-bigskin-(any number in 1-n, n represents the number of the hero's skin) +. jpg
4. Good-looking pictures
Ice crown princess. jpg
Midsummer Night's Dream. jpg
Supreme treasure. jpg
Python crawler-20 lines of code crawl King Glory all heroic pictures, small white also lightly loose