Test the tool-use the Douban API to crawl the Douban film top250 and test the top250
Recently, I have to climb something. For Douban, it provides APIs for developers. Currently, it is in v2 version. Currently, keys are not open to individuals, but data can be obtained through APIS provided by Douban. API permissions of apsaravideo for VOD are.
Another point is that the return value of Douban API is json. The so-called JSON (JavaScript Object Notation) is a lightweight data exchange format. It is based on a subset of JavaScript (Standard ECMA-262 3rd Edition-December 1999. JSON uses a completely language-independent text format, but it also uses a habit similar to the C language family (including C, C ++, C #, Java, JavaScript, Perl, Python, and so on ). These features make JSON an ideal data exchange language. Easy for reading and writing, and easy for machine parsing and generation. [