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

一个内置了 GxAxxxx 内部判断逻辑的 google-ip-searcher (Based on Mac OS)

  •  
  •   shadowmydx · 2015-10-22 23:52:21 +08:00 · 1952 次点击
    这是一个创建于 3109 天前的主题,其中的信息可能已经有所发展或是发生改变。

    前段时间换了 macbook ,加上之前 gogo-tester 储存下来的 ip 慢慢得都不行了,于是就自己做了个 mac os 下的 google-ip-searcher 。

    在连接 443 和检查证书的基础上,还拷贝了 GxAxxxx 的判断逻辑,组装了一个递进的三层检测来对检测过程提速,由于网络 io 阻塞多,所以大方用了多线程 + 多阻塞队列。

    由于最后的测速模块用的是 mac os 上的 ping ,加上自己懒,可能别的平台尤其是 windows 的朋友需要把 speedertester 模块下的处理逻辑修改或者注释掉。

    自己使用了下,搜了一个 ip 段,获得的地址都比较稳定。

    欢迎大家凶狠吐槽,更欢迎大家提多多的建议,更更欢迎大家给我 pull 新功能:)

    戳这里
    https://github.com/shadowmydx/google-ip-searcher

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2658 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:59 · PVG 09:59 · LAX 18:59 · JFK 21:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.