Python crawler-20 lines of code crawl King Glory all heroic pictures, small white also lightly loose

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.