This question is quite interesting.
Simply post some personal comments, Qian Jian.
1. Java requires much more code to implement a web crawler than Python, and the implementation is relatively complex.
2. Java also has libraries related to crawlers, but not as many as Python.
However, in terms of crawler effects, both Java and Python can do it, but the amount of work is different and the implementation methods are also different.
I look forward to more pros and cons from the experts.
Recommended tutorial: "Python Tutorial"
The above is the detailed content of Why does crawler use Python instead of Java?. For more information, please follow other related articles on the PHP Chinese website!