摘要: 安装snv命令: yum -y install subversion 查看是否安装成功: yum list installed 建立版本库目录,建立好的版本库目录与安装目录不在同级目录下,如果没有这个路径,那么你就去创建它: mkdir –p /opt/svndata/repos 建立svn版本库, 阅读全文
posted @ 2017-06-07 21:04 陌溪 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #设置超时时间爬取网页速度相对要快些#encoding:utf8from lxml import etree#xpathimport re#正则import time#时间import requests#传值from selenium import webdriver#通用阅览器from selen 阅读全文
posted @ 2017-05-24 08:51 陌溪 阅读(3441) 评论(0) 推荐(0) 编辑
摘要: img class="desc_img" src="https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=%E6%88%91%E8%A6%81%E6%90%9E%E4%BA%8B%E6%83%85%E5%9B%BE%E7%89%87&hs=2&pn=1&spn=0&di=173683091450&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&ie=utf-8&oe=utf-8&cl=2&lm=-1&cs=1200222280%2C2383417272&os=3774424595%2C3745275427&simid=3417589611%2C145597951&adpicid=0&lpn=0&ln=30&fr=ala&fm=&sme=&cg=&bdtype=0&oriquery=%E6%88%91%E8%A6%81%E6%90%9E%E4%BA%8B%E6%83%85%E5%9B%BE%E7%89%87&objurl=http:%2F%2Fimgsrc.baidu.com%2 阅读全文
posted @ 2017-05-21 20:38 陌溪 阅读(495) 评论(0) 推荐(0) 编辑
摘要: #encoding:utf8import requestsfrom lxml import etreeimport reimport hashlib#random定义任意随机数import randomimport timeyuan = requests.get('http://esf.fang.c 阅读全文
posted @ 2017-05-15 16:52 陌溪 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #encoding:utf8import _threadimport timeimport requestsfrom lxml import etreeimport reimport sysfrom contextlib import closing# 为线程定义一个函数class Progress 阅读全文
posted @ 2017-05-15 16:42 陌溪 阅读(831) 评论(0) 推荐(0) 编辑
摘要: #encoding:utf8import requestsimport jsonimport redemo = requests.get('http://www.toutiao.com/api/pc/feed/?category=gallery_detail&utm_source=toutiao&m 阅读全文
posted @ 2017-05-09 19:03 陌溪 阅读(390) 评论(0) 推荐(0) 编辑