Home  >  Article  >  Backend Development  >  Example of Python crawler crawling Dota rankings

Example of Python crawler crawling Dota rankings

PHP中文网
PHP中文网Original
2017-06-20 15:12:051413browse

1. Analysis website

Open the developer tools and we observe that the ranking data is not in the doc


doc document

In Javascript we can see the following code:


ajax post method asynchronous request Data

In the XHR column, we find the requested data


Data stored in json

The request field is:


post request field

2. Disguise the browser and store the json data in excel Inside

Get information

Put the data Save to excel

3. Result display

The above is the detailed content of Example of Python crawler crawling Dota rankings. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn