推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
displayabc
V2EX  ›  Python

python 的 requests 发起请求的时候能不能指定本地的网卡?

  •  
  •   displayabc · Aug 29, 2014 · 5816 views
    This topic created in 4450 days ago, the information mentioned may be changed or developed.
    多块网卡多ip,如何指定requests使用哪个?
    3 replies  •  2014-08-29 23:22:08 +08:00
    freefcw
    freefcw
    Aug 29, 2014
    1
    这个应该是路由级别的事情
    mengskysama
    mengskysama
    Aug 29, 2014❤️1
    2
    这个是底层管的,你可以改他的底层实现, 看urllib3的C模块,加一个接口出来吧加个bind函数。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 01:40 · PVG 09:40 · LAX 17:40 · JFK 20:40
    ♥ Do have faith in what you're doing.