middlewares.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Spider 作者: poluo 项目源码 文件源码
def change_proxy():
        status, res = subprocess.getstatusoutput('adsl-stop')
        if status == 0:
            log.debug('adsl stop success')
        else:
            log.warning('adsl stop failed')
        time.sleep(0.5)
        status, res = subprocess.getstatusoutput('adsl-start')
        if status == 0:
            log.debug('adsl start success')
        else:
            log.warning('adsl start failed')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号