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

哪位朋友知道如何用 Python 控制 centos ADSL 拨号换 IP

  •  
  •   xiayibu · Jun 15, 2017 · 3717 views
    This topic created in 3431 days ago, the information mentioned may be changed or developed.
    7 replies  •  2017-06-16 08:11:33 +08:00
    laoyur
    laoyur
    Jun 15, 2017
    1
    目测楼主在做拨号 vps 方案
    os.system 调一下 shell 进行重拨不行?
    xiayibu
    xiayibu
    OP
    Jun 15, 2017
    2
    @laoyur 可以提供具体代码吗
    laoyur
    laoyur
    Jun 15, 2017❤️1
    3
    代码不是很直白嘛

    事先配置好 pppoe 参数
    ```
    os.system('ifdown ppp0')
    os.system('ifup ppp0')
    # 此时就已经拨号成功了呗
    ```
    xiayibu
    xiayibu
    OP
    Jun 15, 2017
    5
    @onion83 谢谢
    yanzixuan
    yanzixuan
    Jun 15, 2017
    6
    一看就知道是搞爬虫哦的。
    KgM4gLtF0shViDH3
    KgM4gLtF0shViDH3
    Jun 16, 2017 via Android
    7
    @yanzixuan 搞爬虫为啥不用代理 ip,也不贵
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2277 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:42 · PVG 19:42 · LAX 03:42 · JFK 06:42
    ♥ Do have faith in what you're doing.