Python crawler DOTA ranking crawling instance (SHARE), pythondota

Source: Internet
Author: User

Python crawler DOTA ranking crawling instance (SHARE), pythondota

1. Analyze the website

Open the developer tool and we can see that the ranking data is not in the doc.

 

Doc

In Javascript, I can see the following code:

Ajax post method asynchronously requests data

In the XHR column, we find the requested data

Json-stored data

The request field is:

Post request field

2. disguise the browser and save the json data into the excel file.

Obtain information

Save data to excel

3. Result Display

The above Python crawler DOTA ranking crawling instance (SHARE) is all the content shared by the editor. I hope you can give us a reference and support the house of helping customers.

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.