您可以推荐一些Python HTTP客户端库吗? [英] Can you recommend some Python HTTP client library?
问题描述
我想使用Python从某些网站捕获信息. 我希望HTTP客户端满足以下条件:
I want to use Python to capture info from some websites. I want the HTTP client to meet this conditions:
-
支持HTTPS
Supports HTTPS
不会使用太多内存,不应生成大量进程或线程.
Will not use too much memory, should not generate a lot of processes or threads.
文档清晰且受到积极支持
Has clear documentation and is actively supported
我知道requests
,tornado
或gevent
-httpclient
可以完成我的任务,但我不知道哪个最好?还是还有其他选择?
I know that requests
, tornado
, or the gevent
-httpclient
can finish my task, but I do not know which is the best? Or is there some other choices?
或者如果C
/c++
中还有其他选择.
Or if there is some other choices written in C
/c++
.
推荐答案
使用 requests
.它具有各种库中最相同的API.
Use requests
. It has the most same API of the various libraries.
这篇关于您可以推荐一些Python HTTP客户端库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!