Home  >  Article  >  Backend Development  >  Why do people like to use python when writing crawlers?

Why do people like to use python when writing crawlers?

WBOY
WBOYOriginal
2016-09-21 13:56:431113browse

Why do people like to use python when writing crawlers? The author studied PHP, but also taught Python by himself, and has a relatively deep understanding of PHP. After reading some source codes of Python crawlers, I feel that the same functions can be written in PHP. Some people may complain that PHP does not support multi-threading. , In fact, PHP has pthreads multi-thread extension, and it can also support PHP extension very efficiently. The original poster also plays with penetration. In many cases, because he knows more about PHP and becomes more familiar with it, many payload utilizations or some SQL injection verification scripts are also written in PHP. I feel that PHP array processing is more convenient, and data processing is required. More flexible, so I want to ask why python is more suitable for writing crawlers? (Maybe python has some more powerful features that the author doesn’t understand, so I came to ask for advice)

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