Python crawler crawls the watercress reading

Source: Internet
Author: User

Recently used Python to write a watercress reading reptile play, convenient to gather all kinds of meimei books, share to everyone



Implementation features:

1 can climb down all the books under the Watercress Book label

2 Store by rating rank

3 stored in Excel, you can easily filter, such as screening evaluation of the number of >1000 high-score books; Different themes can be stored to excel different sheet

4 using the user agent disguised as a browser crawl, and add a random delay to better mimic browser behavior, to avoid the crawler is blocked



Try to crawl seventy thousand or eighty thousand books, there are book_list.xlsx, the results are as follows:




Detailed code and some of the results of crawling can move to Github:https://github.com/lanbing510/doubanspider



Python crawler crawls the watercress reading

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.