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