您可以推荐一些Python HTTP客户端库吗? [英] Can you recommend some Python HTTP client library?

查看:91
本文介绍了您可以推荐一些Python HTTP客户端库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Python从某些网站捕获信息. 我希望HTTP客户端满足以下条件:

I want to use Python to capture info from some websites. I want the HTTP client to meet this conditions:

  1. 支持HTTPS

  1. Supports HTTPS

不会使用太多内存,不应生成大量进程或线程.

Will not use too much memory, should not generate a lot of processes or threads.

文档清晰且受到积极支持

Has clear documentation and is actively supported


我知道requeststornadogevent -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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆