推荐学习书目
› 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
daiqiangbudainiu
V2EX  ›  Python

Mac 系统下, Scrapy 自动走系统代理?

  •  
  •   daiqiangbudainiu · Jan 24, 2019 · 2179 views
    This topic created in 2862 days ago, the information mentioned may be changed or developed.
    我在系统自带的终端下,执行 scrapy crawl xxxx 发现,会自动走配置在 Mac 系统中的代理

    我可以确认 Terminal.app 这个终端没有配置代理 export 中看不到 http_proxy https_proxy

    想问问这是怎么回事
    5 replies  •  2019-01-28 21:02:09 +08:00
    15399905591
    15399905591
    Jan 24, 2019
    1
    你的系统代理设置的是全局的吧?
    daiqiangbudainiu
    daiqiangbudainiu
    OP
    Jan 25, 2019
    2
    @15399905591 但是命令行中其他命令并不会走代理啊
    15399905591
    15399905591
    Jan 25, 2019
    3
    两边都是访问的同一个地址吗? 是不是你的代理有做条件切换呢?
    daiqiangbudainiu
    daiqiangbudainiu
    OP
    Jan 25, 2019
    4
    @15399905591 我代理是全局的
    ooleslie
    ooleslie
    Jan 28, 2019
    5
    抓下包
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2746 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:29 · PVG 18:29 · LAX 02:29 · JFK 05:29
    ♥ Do have faith in what you're doing.