Why do people like to use python when writing crawlers?

WBOY
Release: 2016-09-21 13:56:43
Original
1022 people have browsed it

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)

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!