Tag:python

  • Crawler crawls JSON HTML data

    Time:2019-8-24

    In the past two weeks, I have been busy climbing some data for the company, and the speed of writing has declined a little. I am expected to finish climbing today and sum up my experience. In fact, our company used to specialize in crawlers, so we don’t need to work on the front side. […]

  • MongoDB Guide – 8. Specific types of queries

    Time:2019-8-24

    Last article: MongoDB Guide – 7. Find Introduction and Query ConditionsNext article: MongoDB Guide – 9. Cursors and database commands As described in Chapter 2, MongoDB documents can use multiple types of data. Some of them have special performance when querying. 4.3.1 null The null type of behavior is a little strange. It does match itself, […]

  • Tornado Advancement – Start with Source Code (Reprint)

    Time:2019-8-24

    Overview of tornado Preparations for epoll 3. Source code structure 4. tornado’s HTTP layer 5. tornado’s TCP layer 6. tornado’s ioloop analysis Tornado request 1 8. tornado request 2 Ps: Thank you, Jason_wang, for your blog address.

  • Python 3 Web Crawler Actual Warfare – 29. Use of Parsing Library: Beautiful Soup

    Time:2019-8-23

    Last article: Python 3 Web Crawler Actual Warfare – 28. Use of parsing libraries: XPathNext article: Python 3 Web Crawler Actual Warfare – 30. Use of parsing libraries: PyQuery We introduced the usage of regular expressions before, but once there is a problem with regular writing, we may not get the result we want, and […]

  • Machine Learning (6) – Realization of Automatic Subject Type Partition of Movies Based on KNN Classification Algorithms

    Time:2019-8-23

    Introduction to Classification Algorithms As we all know, movies can be categorized according to the theme, but how to define the theme itself? Who decides which theme a movie belongs to? That is to say, what public characteristics do movies with the same theme have? These are the issues that must be considered when classifying […]

  • Preview of the New Book “The Gate of Full Stack Data”

    Time:2019-8-23

    Finally, I can give you all the relatives and friends who care about “The Gate of Data on the Whole Stack” a confession! After more than three months of editing and typesetting, the final edition has been completed. After New Year’s Day, when you come back after eating, drinking and playing, you can start printing. […]

  • Model of Django development – field type explanation

    Time:2019-8-23

    Today, I will introduce the related field types and field options used to define models in Django development. Let’s start with the commonly used field types:1) AutoField: Self-increasing field type, which can be used when customizing the ID of the self-increasing type;2) BigAutoField: 64-bit integer self-increasing type;3) BigIntegerField: 64-bit integer class type;4) BinrayField: Binary data […]

  • Talk about Python’s built-in battery

    Time:2019-8-23

    This article was originally published in the Public Number.【Python Cat】 Do not reproduce without authorization. Original address: https://mp.weixin.qqq.com/s/XzCqoCvcpFJt4A-E4WMqaA (1) Recently, I suddenly thought of a question:What concepts or idioms are unique to Python compared to other languages? After asking this question in the circle of friends, I got the most responses.——Pythonic。 This reply is not […]

  • It’s Python, too. How does it make such a big difference?

    Time:2019-8-23

    discover problems Last week, my test colleague told me how can your user name still be allowed in Chinese? At that time, I thought to myself, you must have made a mistake in the interface test. I used regular w to filter the parameters. How could I make a mistake, unless the Python regular system […]

  • Tornado continues to return 304 status codes when processing get requests

    Time:2019-8-22

    Tornado Source Code Analysis–Etag Implementation Etag (Entity Tag of URL): For the specific Etag is what, request process, implementation principles, there is no introduction here, you can refer to the following links:http://www.oschina.net/questi…https://zh.wikipedia.org/wiki… Tornado implements analysis: Start with the order in which Tornado processes a request (extracted from the document: http://www.tornadoweb.cn/documentation): The program creates a RequestHandler […]

  • What’s the use of raise NotImplemented Error of the IOLoop class in tornado source code?

    Time:2019-8-22

    Many methods in the IOLoop class in tornado source code have only oneRaise NotImplemented Error ()What’s the use of doing this? Why won’t the runtime report errors? For example: Def close (self, all_fds = False): Thank you for your answers!