V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
warcraft1236
V2EX  ›  Python

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

  •  
  •   warcraft1236 · 2019-01-24 02:39:31 +08:00 · 1500 次点击
    这是一个创建于 1918 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我在系统自带的终端下,执行 scrapy crawl xxxx 发现,会自动走配置在 Mac 系统中的代理

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

    想问问这是怎么回事
    5 条回复    2019-01-28 21:02:09 +08:00
    15399905591
        1
    15399905591  
       2019-01-24 17:06:50 +08:00
    你的系统代理设置的是全局的吧?
    warcraft1236
        2
    warcraft1236  
    OP
       2019-01-25 09:47:05 +08:00
    @15399905591 但是命令行中其他命令并不会走代理啊
    15399905591
        3
    15399905591  
       2019-01-25 13:38:45 +08:00
    两边都是访问的同一个地址吗? 是不是你的代理有做条件切换呢?
    warcraft1236
        4
    warcraft1236  
    OP
       2019-01-25 13:40:29 +08:00
    @15399905591 我代理是全局的
    ooleslie
        5
    ooleslie  
       2019-01-28 21:02:09 +08:00
    抓下包
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5257 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 03:46 · PVG 11:46 · LAX 20:46 · JFK 23:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.