推荐学习书目
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 · 2026 views
    This topic created in 2749 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
        1
    15399905591  
       Jan 24, 2019
    你的系统代理设置的是全局的吧?
    daiqiangbudainiu
        2
    daiqiangbudainiu  
    OP
       Jan 25, 2019
    @15399905591 但是命令行中其他命令并不会走代理啊
    15399905591
        3
    15399905591  
       Jan 25, 2019
    两边都是访问的同一个地址吗? 是不是你的代理有做条件切换呢?
    daiqiangbudainiu
        4
    daiqiangbudainiu  
    OP
       Jan 25, 2019
    @15399905591 我代理是全局的
    ooleslie
        5
    ooleslie  
       Jan 28, 2019
    抓下包
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3027 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:32 · PVG 22:32 · LAX 07:32 · JFK 10:32
    ♥ Do have faith in what you're doing.