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
jerryge
V2EX  ›  Python

ip 代理自动切换?

  •  
  •   jerryge · 2016-06-13 23:32:04 +08:00 · 3800 次点击
    这是一个创建于 2873 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看了一下 squid ,出口 ip 可以写在配置列表里,但是代理 ip 是网上抓的存入数据库,有办法定时更新到 squid 配置列表里吗?或者有其它解决方案吗?类似 scrapying hub.

    4 条回复    2016-06-14 09:08:06 +08:00
    notgod
        1
    notgod  
       2016-06-14 01:06:44 +08:00   ❤️ 1
    定时任务大法好
    流程
    抓 IP 验证 存数据库 定时读取验证 有效 生成配置文件 reload 或重启 squid
    messyidea
        2
    messyidea  
       2016-06-14 01:10:48 +08:00 via Android   ❤️ 1
    可以试下 polipo ,文档里面好像有个 parentProxy 选项,可以参数命令行启动。
    ji4ozhu
        3
    ji4ozhu  
       2016-06-14 07:34:39 +08:00
    ip.54nb.com 百度搜挂机宝。有 SDK 啊
    jerryge
        4
    jerryge  
    OP
       2016-06-14 09:08:06 +08:00
    @notgod 完成到了验证有效。生成配置文件, reload 不知道查不查的到资料。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4840 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:52 · PVG 17:52 · LAX 02:52 · JFK 05:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.