正则表达式的捕获分组的测试

Zss 发表于:

一.自己主页的html来测试

我需要提取每个文章的名字和发布时间和url的链接,以往我是选择xpath来提取这些信息,但是需要将文本通过lxml库进行转换,再进行节点的选择

当时用到正则就直接字符串匹配就可以搞定了,且一条规则直接匹配出所有的信息,当然需要使用到捕获分组,用法很多

html的其中的信息,这只是其中的一条:

    class ="entry-title" > < a href="http://www.testone.top/?p=933" rel="bookmark" > encode,decode的使用和编码问题 < / a > < / h2 > < span class ="posted-on" > Zss 发表于: < time class ="entry-date published" datetime="2018-09-05T22:32:56+00:00" > 2018-09-05 < / time > < time class ="updated" datetime="2018-09-10T21:11:59+00:00" > 2018-09-10 < / time > < / span >

根据上面的格式来进行匹配(?:),我理解成匹配但是不分配,()匹配且分配匹配的内容,其中(.*)就是我需要的内容

其中使用到了四个(),那么会将每个()中匹配到的字符作为一个元祖的元素,那么这个元组就有4个元素,因为匹配到有很多个,返回成一个列表

再使用zip(*…)进行分解到url,title,date,time

r'(?:a\s+href=”)(.*)(?:”\s+.*>)(.*)(?:</a>.*datetime=”)(.*)(?:T)(.*)(?:\+)’

#coding:utf-8
import re
import requests

if __name__ == '__main__':
    html = requests.get('http://www.testone.top/?cat=10').text
    rule = re.compile(r'(?:a\s+href=")(.*)(?:"\s+.*>)(.*)(?:</a>.*datetime=")(.*)(?:T)(.*)(?:\+)')
    result = re.findall(rule,html)  #返回一个列表,元素为元组
    print result
    url,title,date,time = zip(*result)
    print url
    print title
    print date
    print time 

输出:
[(u'http://www.testone.top/?p=1088', u'\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u91cf\u8bcd', u'2018-10-26', u'17:26:39'), (u'http://www.testone.top/?p=1077', u'\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5143\u5b57\u7b26', u'2018-10-26', u'17:08:05'), (u'http://www.testone.top/?p=1080', u'\u6f2b\u6e38\u65f6\u95f4\u7684\u8ba1\u7b97\u4e0e\u6f2b\u6e38\u65f6\u95f4\u56fe\u8868\u7684\u751f\u6210', u'2018-10-25', u'21:11:55'), (u'http://www.testone.top/?p=1071', u'Scapy\u64cd\u4f5c\u6570\u636e\u5305\u7684\u4e00\u4e9b\u7528\u6cd5', u'2018-10-21', u'15:24:32'), (u'http://www.testone.top/?p=1067', u'Pyinstaller\u6253\u5305exe\u540e\u51fa\u73b0ImportError: No module named Queue\u7684\u95ee\u9898', u'2018-10-21', u'14:39:00'), (u'http://www.testone.top/?p=1059', u'\u4f7f\u7528scapy\u4fee\u6539\u6e90MAC\u7684\u53d1\u5305\u5de5\u5177', u'2018-10-21', u'14:42:57'), (u'http://www.testone.top/?p=1057', u'scapy\u5b58\u5728\u7684\u5185\u5b58\u6cc4\u6f0f\u95ee\u9898', u'2018-10-19', u'22:47:40'), (u'http://www.testone.top/?p=1055', u'grep\u5e38\u7528\u7684\u76f8\u5173\u53c2\u6570', u'2018-10-17', u'23:26:38'), (u'http://www.testone.top/?p=1053', u'\u4fee\u6539\u8fc7\u540e\u7684\u9ad8\u901f\u7387\u53d1\u5305\u5de5\u5177', u'2018-10-17', u'17:53:58'), (u'http://www.testone.top/?p=1047', u'fiddler\u7684\u65ad\u70b9\u6d4b\u8bd5', u'2018-10-16', u'11:17:57'), (u'http://www.testone.top/?p=1032', u'\u4f7f\u7528Vmware workstation\u6765\u89e3\u51b3\u670d\u52a1\u5668\u6302\u6389\u7684\u9ebb\u70e6\u4e8b', u'2018-10-15', u'17:58:45'), (u'http://www.testone.top/?p=1027', u'\u5b9e\u73b0\u6839\u636eIP\u7684\u6765\u8fdb\u884c\u70b9\u8d5e\u7684\u9650\u5236', u'2018-10-16', u'09:50:27'), (u'http://www.testone.top/?p=1025', u'Flask\u4e2d\u51fa\u73b0\u7684\u7f16\u7801\u9519\u8bef\u7684\u95ee\u9898', u'2018-10-12', u'15:44:08'), (u'http://www.testone.top/?p=1021', u'crontab\u5b9a\u65f6\u4efb\u52a1\u7684\u51e0\u4e2a\u95ee\u9898', u'2018-10-09', u'21:47:09'), (u'http://www.testone.top/?p=1011', u'centos7 Ipv6dhcp\u670d\u52a1\u5668\u642d\u5efa', u'2018-09-27', u'16:41:36'), (u'http://www.testone.top/?p=1005', u'Centos7\u4e2dradius\u670d\u52a1\u5668\u7684\u642d\u5efa', u'2018-09-26', u'17:54:37'), (u'http://www.testone.top/?p=1003', u'centos7\u4e2dpppoe\u670d\u52a1\u5668\u642d\u5efa', u'2018-09-26', u'16:19:24'), (u'http://www.testone.top/?p=998', u'Jquery\u4f7f\u7528Ajax\u83b7\u53d6\u8fd4\u56de\u503c\u7684\u95ee\u9898', u'2018-09-24', u'21:29:22'), (u'http://www.testone.top/?p=993', u'ajax\u63a5\u6536\u540e\u53f0\u6570\u636e\u53cadataType\u7c7b\u578b\u8bbe\u7f6e', u'2018-09-24', u'21:29:44'), (u'http://www.testone.top/?p=990', u'Flask\u63a5\u6536Ajax\u7684post\u6570\u636e\u5b9e\u73b0\u5c40\u90e8\u5237\u65b0', u'2018-09-24', u'21:29:56'), (u'http://www.testone.top/?p=988', u'Flask\u83b7\u53d6Post\u8bf7\u6c42\u7684\u53c2\u6570', u'2018-09-24', u'21:30:17'), (u'http://www.testone.top/?p=986', u'wordpress\u7684\u6570\u636e\u5e93\u6062\u590d\u95ee\u9898', u'2018-09-26', u'09:48:58'), (u'http://www.testone.top/?p=982', u'python\u4e2dMysql\u6570\u636e\u5e93\u7684\u8fde\u63a5', u'2018-09-20', u'23:38:21'), (u'http://www.testone.top/?p=980', u'\u4e09\u5143\u8868\u8fbe\u5f0f', u'2018-09-19', u'23:40:17'), (u'http://www.testone.top/?p=976', u'AP\u7248\u672c\u95f4\u53cd\u590d\u5347\u7ea7\u6d4b\u8bd5\u811a\u672c', u'2018-09-18', u'23:22:17'), (u'http://www.testone.top/?p=964', u'python2.7.14\u7684\u6e90\u7801\u5b89\u88c5\u53ca\u811a\u672c\u5b89\u88c5', u'2018-09-18', u'14:20:39'), (u'http://www.testone.top/?p=965', u'shell\u7684\u7a7a\u5b57\u7b26\u5224\u65ad', u'2018-09-17', u'21:59:43'), (u'http://www.testone.top/?p=957', u'\u642d\u5efa\u4e00\u4e2a\u67e5\u770b\u670d\u52a1\u5668\u4fe1\u606f\u7684\u7f51\u7ad9', u'2018-09-15', u'16:05:35'), (u'http://www.testone.top/?p=955', u'jinja2\u6a21\u677f\u5f15\u64ce\u94fe\u63a5\u7684\u5f15\u5165', u'2018-09-26', u'09:48:07'), (u'http://www.testone.top/?p=950', u'jquery\u7684\u70b9\u51fb\u9690\u85cf\u663e\u793a\u4e8b\u4ef6', u'2018-09-26', u'09:48:20'), (u'http://www.testone.top/?p=952', u'jinja2\u6a21\u677f\u5f15\u64ce\u7684\u53d8\u91cf\u5f15\u5165', u'2018-09-26', u'09:47:44'), (u'http://www.testone.top/?p=948', u'\u4e91\u670d\u52a1\u5668\u7684\u5185\u5b58\u548ccpu\u5229\u7528\u7387\u7684\u76d1\u6d4b\u8bb0\u5f55', u'2018-09-26', u'09:47:14'), (u'http://www.testone.top/?p=946', u'virtualenv\u521b\u5efapython\u7684\u72ec\u7acb\u73af\u5883', u'2018-09-11', u'15:54:33'), (u'http://www.testone.top/?p=943', u'AP_IP\u5730\u5740\u626b\u63cf\u5de5\u5177', u'2018-09-10', u'21:11:14'), (u'http://www.testone.top/?p=940', u'*args \u548c **kwargs\u7528\u6cd5\u548c\u53c2\u6570\u4f20\u9012\u6280\u5de7', u'2018-09-08', u'16:57:04'), (u'http://www.testone.top/?p=933', u'encode\uff0cdecode\u7684\u4f7f\u7528\u548c\u7f16\u7801\u95ee\u9898', u'2018-09-10', u'21:11:59'), (u'http://www.testone.top/?p=930', u'Ap\u7248\u672c\u5347\u7ea7\u5de5\u5177', u'2018-09-04', u'16:19:18'), (u'http://www.testone.top/?p=927', u'\u5173\u4e8eUDP\u7ec4\u5305\u7684\u95ee\u9898', u'2018-09-03', u'22:54:18'), (u'http://www.testone.top/?p=916', u'\u4f7f\u7528\u732b\u773c\u7535\u5f71\u8bc4\u8bba\u5236\u4f5c\u4e00\u5f20\u4e91\u8bcd\u56fe', u'2018-09-03', u'14:36:16'), (u'http://www.testone.top/?p=920', u'jieba\u5206\u8bcd\u6a21\u5757', u'2018-09-03', u'11:54:42'), (u'http://www.testone.top/?p=911', u'\u65ad\u8a00\u548c\u5f02\u5e38\u5904\u7406', u'2018-09-03', u'10:31:07'), (u'http://www.testone.top/?p=905', u'Hardware Nat', u'2018-08-30', u'17:17:29'), (u'http://www.testone.top/?p=903', u'datetime\u6a21\u5757\u7684\u65f6\u95f4\u8ba1\u7b97', u'2018-08-28', u'22:48:35'), (u'http://www.testone.top/?p=888', u'Pyecharts\u6570\u636e\u53ef\u89c6\u5316\u56fe\u8868', u'2018-08-27', u'22:15:18'), (u'http://www.testone.top/?p=886', u'\u5217\u8868\u7684\u6392\u5e8f\u548c\u8ba1\u6570', u'2018-08-28', u'10:44:15'), (u'http://www.testone.top/?p=883', u'\u732b\u773c\u7535\u5f71\u7684\u8bc4\u8bba\u6570\u636e\u722c\u53d6', u'2018-08-24', u'11:15:05'), (u'http://www.testone.top/?p=881', u'Firmware\u6279\u91cf\u4e0a\u4f20\u5de5\u51772.0', u'2018-08-23', u'12:48:38'), (u'http://www.testone.top/?p=875', u'fiddler\u79fb\u52a8\u7aef\u6293\u5305', u'2018-08-22', u'21:18:16'), (u'http://www.testone.top/?p=871', u'logging\u6a21\u5757\u4e4b\u8f93\u51fa\u53f0\u548c\u65e5\u5fd7\u5904\u7406', u'2018-08-22', u'11:47:45'), (u'http://www.testone.top/?p=866', u'\u63a7\u5236\u53f0\u6253\u5370\u548clog\u65e5\u5fd7\u8f93\u51fa', u'2018-08-21', u'22:41:15'), (u'http://www.testone.top/?p=864', u'Configparser\u6a21\u5757\u4e4b\u914d\u7f6e\u6587\u4ef6\u7684\u64cd\u4f5c', u'2018-08-21', u'17:22:46'), (u'http://www.testone.top/?p=861', u'\u8fdc\u7a0b\u767b\u9646\u51fa\u73b0\u7684WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\u9519\u8bef', u'2018-08-20', u'10:49:38'), (u'http://www.testone.top/?p=852', u'\u4ee5\u592a\u7f51\u6700\u5927\u4f20\u8f93\u5355\u5143-MTU', u'2018-08-19', u'17:03:00'), (u'http://www.testone.top/?p=848', u'\u7f51\u7edc\u4e2d\u7684\u4f20\u8f93\u5355\u4f4d', u'2018-08-18', u'15:35:37'), (u'http://www.testone.top/?p=836', u'\u82b1\u74e3\u7f51\u722c\u866b', u'2018-08-18', u'15:28:27'), (u'http://www.testone.top/?p=842', u'Alert\u751f\u6210\u5de5\u5177', u'2018-08-15', u'17:28:16'), (u'http://www.testone.top/?p=839', u'\u4ee3\u7406Ip\u7684\u6293\u53d6\u4e0e\u9a8c\u8bc1', u'2018-08-14', u'20:21:26'), (u'http://www.testone.top/?p=834', u'requests\u4e24\u79cd\u8bf7\u6c42\u65b9\u5f0f\u6765\u4f20\u9012\u5b57\u5178\u6570\u636e', u'2018-08-13', u'18:07:33'), (u'http://www.testone.top/?p=832', u'Wxpy\u4e4b\u56fe\u7075\u673a\u5668\u4eba\u7684\u63a5\u5165', u'2018-08-12', u'21:13:24'), (u'http://www.testone.top/?p=828', u'\u661f\u5ea7\u8fd0\u52bf\u67e5\u8be2\u7684Python\u6a21\u5757\u63a5\u53e3', u'2018-08-12', u'20:30:46'), (u'http://www.testone.top/?p=826', u'\u67e5\u8be2\u5929\u6c14\u6570\u636ePython\u6a21\u5757\u63a5\u53e3', u'2018-08-12', u'20:15:58'), (u'http://www.testone.top/?p=817', u'WXPY\u6a21\u5757\u4e4b\u6d88\u606f\u76d1\u542c', u'2018-08-11', u'14:56:24'), (u'http://www.testone.top/?p=815', u'Wxpy\u6a21\u5757\u4e4b\u6d88\u606f\u53d1\u9001', u'2018-08-11', u'14:53:09'), (u'http://www.testone.top/?p=804', u'Jmeter\u4f7f\u7528CSV Data\u6765\u53c2\u6570\u5316', u'2018-08-09', u'17:47:09'), (u'http://www.testone.top/?p=801', u'\u8f93\u51fa\u7279\u5b9a\u7684\u884c\u4e0e\u5217', u'2018-08-09', u'11:57:08'), (u'http://www.testone.top/?p=797', u'screen\u547d\u4ee4', u'2018-08-08', u'23:01:35'), (u'http://www.testone.top/?p=793', u'Python\u5b9e\u73b0\u5927\u4e8e32Kpkt/s\u7684\u5305\u901f\u7387\u53d1\u5305\u5de5\u5177', u'2018-08-08', u'22:39:33'), (u'http://www.testone.top/?p=791', u'\u51e0\u79cd\u83b7\u53d6PC\u7f51\u5361ip\u5730\u5740\u7684\u65b9\u6cd5', u'2018-08-06', u'22:34:24'), (u'http://www.testone.top/?p=788', u'Python\u5b9e\u73b0\u7684\u6279\u91cf\u4e0a\u4f20Firmware\u5de5\u5177', u'2018-08-05', u'15:35:52'), (u'http://www.testone.top/?p=785', u'\u4f7f\u7528requests \u53d1\u9001multipart/form-data\u683c\u5f0f\u7684\u6587\u4ef6\u4e0a\u4f20\u8bf7\u6c42', u'2018-08-04', u'21:14:29'), (u'http://www.testone.top/?p=782', u'\u4f7f\u7528Python\u538b\u7f29\u6587\u4ef6\u65f6\u51fa\u73b0\u7684\u591a\u5c42\u76ee\u5f55\u7684\u95ee\u9898', u'2018-08-03', u'22:32:41'), (u'http://www.testone.top/?p=777', u'\u514d\u8d39ARP', u'2018-08-01', u'23:05:44'), (u'http://www.testone.top/?p=768', u'ARP\u5730\u5740\u89e3\u6790\u534f\u8bae', u'2018-07-31', u'22:21:28'), (u'http://www.testone.top/?p=762', u'NAT-\u7f51\u7edc\u5730\u5740\u8f6c\u6362', u'2018-07-28', u'22:45:53'), (u'http://www.testone.top/?p=759', u'\u4f7f\u7528TCP\u5728\u5c40\u57df\u7f51\u5185\u4f20\u8f93\u6587\u4ef6', u'2018-07-24', u'23:57:00'), (u'http://www.testone.top/?p=756', u'frp-\u5185\u7f51\u7a7f\u900f\u8bbf\u95ee\u672c\u5730web\u670d\u52a1', u'2018-07-23', u'23:00:32'), (u'http://www.testone.top/?p=751', u'Centos7\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8\u811a\u672c', u'2018-07-22', u'18:56:09'), (u'http://www.testone.top/?p=747', u'\u89e3\u51b3\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8\u65f6\u51fa\u73b0\u7684\u201cservice XXX does not support chkconfig\u201d\u95ee\u9898', u'2018-07-22', u'18:32:23'), (u'http://www.testone.top/?p=744', u'FRP-\u5185\u7f51\u7a7f\u900f\u6765\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\u5185\u7f51\u670d\u52a1', u'2018-07-23', u'23:00:19'), (u'http://www.testone.top/?p=738', u'socket-tcp\u7684\u6570\u636e\u4f20\u8f93', u'2018-07-22', u'15:27:19'), (u'http://www.testone.top/?p=723', u'\u4f7f\u7528UDP\u5728\u5c40\u57df\u7f51\u5185\u4f20\u8f93\u6587\u4ef6\u53ca\u76f8\u5173\u95ee\u9898', u'2018-08-19', u'17:02:40'), (u'http://www.testone.top/?p=717', u'Paramiko\u6a21\u5757\u4e2d\u5207\u6362\u5230root\u7528\u6237\u7684\u95ee\u9898\u53ca\u4ea4\u4e92\u5f0fshell\u7684\u5b9e\u73b0', u'2018-07-19', u'22:05:24'), (u'http://www.testone.top/?p=715', u'Pyinstaller\u6253\u5305\u591a\u8fdb\u7a0b\u7684\u95ee\u9898', u'2018-07-18', u'22:11:40'), (u'http://www.testone.top/?p=706', u'HTTP\u4e4b\u72b6\u6001\u7801', u'2018-07-17', u'22:32:56'), (u'http://www.testone.top/?p=700', u'HTTP\u4e4b\u8bf7\u6c42\u65b9\u6cd5', u'2018-07-16', u'22:09:45'), (u'http://www.testone.top/?p=690', u'HTTP\u4e4b\u6d88\u606f\u7ed3\u6784', u'2018-07-16', u'22:07:16'), (u'http://www.testone.top/?p=679', u'HTTP\u4e4bURL', u'2018-07-15', u'15:49:28'), (u'http://www.testone.top/?p=682', u'HTTP\u4e4b\u5de5\u4f5c\u539f\u7406', u'2018-07-16', u'11:49:39'), (u'http://www.testone.top/?p=675', u'Redmine\u7f3a\u9677\u7ba1\u7406\u5e73\u53f0\u642d\u5efa', u'2018-07-12', u'16:21:48'), (u'http://www.testone.top/?p=673', u'Xampp\u4e2dphpmyadmin\u65e0\u6cd5\u8bbf\u95ee\u89e3\u51b3\u529e\u6cd5', u'2018-07-12', u'10:19:34'), (u'http://www.testone.top/?p=665', u'testlink\u5e73\u53f0\u642d\u5efa', u'2018-07-11', u'23:33:07'), (u'http://www.testone.top/?p=663', u'Xampp\u73af\u5883\u642d\u5efa', u'2018-07-11', u'19:58:54'), (u'http://www.testone.top/?p=656', u'ip\u4f4d\u7f6e\u67e5\u8be2\u811a\u672c', u'2018-07-09', u'22:28:09'), (u'http://www.testone.top/?p=654', u'nginx\u7684access_log', u'2018-07-09', u'22:27:44'), (u'http://www.testone.top/?p=649', u'Jmeter\u6c49\u5316', u'2018-07-09', u'10:52:55'), (u'http://www.testone.top/?p=641', u'\u81ea\u52a8\u90e8\u7f72Vm-care\u670d\u52a1\u811a\u672c', u'2018-07-07', u'22:59:35'), (u'http://www.testone.top/?p=637', u'Python\u4e4bsubprocess\u6a21\u5757', u'2018-07-05', u'23:00:27'), (u'http://www.testone.top/?p=639', u'subprocess\u4e2d\u7684Popen\u65b9\u6cd5', u'2018-07-05', u'23:00:02'), (u'http://www.testone.top/?p=612', u'CentOS7\u73af\u5883\u53d8\u91cf\u6dfb\u52a0', u'2018-07-04', u'22:07:08'), (u'http://www.testone.top/?p=632', u'wlan\u4e0b\u53d1\u65f6\u957f\u8ba1\u7b97\u811a\u672c', u'2018-07-07', u'23:00:46'), (u'http://www.testone.top/?p=629', u'base64\u6a21\u5757\u52a0\u5bc6', u'2018-07-01', u'18:00:47'), (u'http://www.testone.top/?p=627', u'\u4e24\u79cd\u540e\u53f0\u8fd0\u884cpython\u7684\u65b9\u5f0f', u'2018-07-04', u'22:02:57'), (u'http://www.testone.top/?p=625', u'sed\u5b57\u7b26\u4e32\u66ff\u6362', u'2018-06-30', u'15:18:38'), (u'http://www.testone.top/?p=620', u'Vim\u952e\u4f4d\u56fe', u'2018-06-30', u'11:36:57'), (u'http://www.testone.top/?p=618', u'yum\u547d\u4ee4', u'2018-06-28', u'16:42:52'), (u'http://www.testone.top/?p=616', u'rpm\u547d\u4ee4', u'2018-06-28', u'14:59:59'), (u'http://www.testone.top/?p=614', u'pstree\u547d\u4ee4', u'2018-06-28', u'14:36:32'), (u'http://www.testone.top/?p=607', u'free\u547d\u4ee4', u'2018-06-26', u'16:44:16'), (u'http://www.testone.top/?p=602', u'\u63a7\u5236\u65e0\u7ebf\u7f51\u5361\u7684wifi\u8fde\u63a5\u811a\u672c', u'2018-10-16', u'09:51:33'), (u'http://www.testone.top/?p=604', u'CMD\u8fde\u63a5wifi(netsh\u547d\u4ee4)', u'2018-06-25', u'22:55:10'), (u'http://www.testone.top/?p=596', u'headers\u53cadata\u6570\u636e\u683c\u5f0f\u5316\u811a\u672c', u'2018-08-14', u'20:23:49'), (u'http://www.testone.top/?p=590', u'shell\u5b57\u7b26\u4e32\u622a\u53d6\u4e0e\u8fde\u63a5', u'2018-06-11', u'23:23:22'), (u'http://www.testone.top/?p=587', u'shell\u5b9e\u73b0\u7684\u81ea\u52a8\u5b89\u88c5OnPremise\u811a\u672c', u'2018-06-11', u'23:23:43'), (u'http://www.testone.top/?p=582', u'Shell\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u9009\u62e9\u83dc\u5355', u'2018-06-11', u'22:44:40'), (u'http://www.testone.top/?p=580', u'Python\u4e2d\u83b7\u53d6\u6587\u4ef6\u540d\u6765\u5b9e\u73b0\u9009\u9879\u83dc\u5355', u'2018-06-11', u'22:44:07'), (u'http://www.testone.top/?p=574', u'sshpass', u'2018-06-11', u'22:43:33'), (u'http://www.testone.top/?p=571', u'linux\u4e0bexpect\u73af\u5883\u5b89\u88c5', u'2018-06-11', u'22:42:57'), (u'http://www.testone.top/?p=565', u'tee\u547d\u4ee4', u'2018-06-05', u'15:47:30'), (u'http://www.testone.top/?p=563', u'watch\u547d\u4ee4', u'2018-06-11', u'16:28:39'), (u'http://www.testone.top/?p=561', u'Shell\u4e2d\u7684\u8fd0\u7b97\u7b26', u'2018-06-04', u'23:25:19'), (u'http://www.testone.top/?p=558', u'Shell\u7684For\u5faa\u73af\u8bed\u53e5', u'2018-06-04', u'23:01:11'), (u'http://www.testone.top/?p=555', u'Shell\u7684\u5224\u65ad\u8bed\u53e5', u'2018-06-01', u'23:57:50'), (u'http://www.testone.top/?p=553', u'\u5e38\u7528\u8f6f\u4ef6\u7684\u9759\u9ed8\u5b89\u88c5\u65b9\u6cd5\u4ecb\u7ecd', u'2018-05-31', u'22:57:09'), (u'http://www.testone.top/?p=548', u'\u4e00\u952e\u90e8\u7f72Python\u73af\u5883\u811a\u672c', u'2018-07-07', u'23:01:58'), (u'http://www.testone.top/?p=543', u'\u5982\u4f55\u83b7\u53d6\u7535\u8111\u4e2d\u6240\u5b58\u5728\u7684\u76d8\u7b26', u'2018-05-29', u'22:29:26'), (u'http://www.testone.top/?p=540', u'xpath\u4e2d\u5339\u914d\u5c5e\u6027\u5305\u542b\u67d0\u4e2a\u503c', u'2018-05-27', u'23:09:41'), (u'http://www.testone.top/?p=534', u'Xpath', u'2018-05-27', u'23:07:37'), (u'http://www.testone.top/?p=531', u'PhantomJS\u548cRequests\u83b7\u53d6Busy\u503c\u811a\u672c', u'2018-07-07', u'23:03:14'), (u'http://www.testone.top/?p=529', u'\u83b7\u53d6Ap\u7ec8\u7aef\u63a5\u5165\u4fe1\u606f\u7684\u811a\u672c', u'2018-05-27', u'23:06:56'), (u'http://www.testone.top/?p=516', u'Selenium\u5bf9PhantomJS\u7684\u652f\u6301', u'2018-05-27', u'23:06:36'), (u'http://www.testone.top/?p=520', u'SSH\u6a21\u5757-paramiko', u'2018-05-17', u'22:59:52'), (u'http://www.testone.top/?p=512', u'\u4f7f\u7528Pyinstaller\u6253\u5305py\u6587\u4ef6', u'2018-05-14', u'23:25:11'), (u'http://www.testone.top/?p=508', u'SMTP\u90ae\u4ef6\u7684\u53d1\u9001', u'2018-05-13', u'22:35:00'), (u'http://www.testone.top/?p=506', u'Python\u4e4brandom\u6a21\u5757', u'2018-05-13', u'12:32:12'), (u'http://www.testone.top/?p=503', u'\u5229\u7528SSH\u8fdc\u7a0b\u76d1\u6d4b\u5185\u5b58\u4f7f\u7528\u7387\u62a5\u8b66\u811a\u672c', u'2018-07-07', u'23:02:40'), (u'http://www.testone.top/?p=500', u'Python\u4e4bTIME\u6a21\u5757', u'2018-05-10', u'23:08:41'), (u'http://www.testone.top/?p=495', u'Python\u4e4bSYS\u6a21\u5757', u'2018-05-10', u'22:14:26'), (u'http://www.testone.top/?p=491', u'\u6587\u4ef6\u8bbf\u95ee\u65b9\u5f0f a r w b +', u'2018-05-10', u'20:48:54'), (u'http://www.testone.top/?p=489', u'\u6587\u4ef6\u8bfb\u5199\u64cd\u4f5c', u'2018-05-09', u'23:34:34'), (u'http://www.testone.top/?p=481', u'\u5229\u7528twilio\u62e8\u6253\u7535\u8bdd\u53d1\u9001\u77ed\u4fe1', u'2018-05-08', u'23:13:58'), (u'http://www.testone.top/?p=475', u'python\u5f15\u5305\u673a\u5236\u53capath\u7684\u8f6f\u6dfb\u52a0\u65b9\u6cd5', u'2018-05-07', u'23:07:36'), (u'http://www.testone.top/?p=473', u'Python\u4e4bOS\u6a21\u5757', u'2018-05-07', u'22:55:46'), (u'http://www.testone.top/?p=455', u'iperf\u7684\u4f7f\u7528', u'2018-05-06', u'23:18:11'), (u'http://www.testone.top/?p=451', u'arp\u7684\u76f8\u5173\u64cd\u4f5c', u'2018-05-05', u'23:35:53'), (u'http://www.testone.top/?p=449', u'tcpdump\u7684\u4f7f\u7528', u'2018-05-05', u'23:17:43'), (u'http://www.testone.top/?p=445', u'wireshark\u8fc7\u6ee4\u89c4\u5219\u603b\u7ed3', u'2018-05-05', u'23:37:41'), (u'http://www.testone.top/?p=437', u'\u4f7f\u7528Jmeter\u6d4b\u8bd5\u535a\u5ba2', u'2018-05-05', u'17:56:34'), (u'http://www.testone.top/?p=432', u'\u5b57\u7b26\u4e32\u7684\u64cd\u4f5c', u'2018-05-03', u'23:11:32'), (u'http://www.testone.top/?p=428', u'\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\u5316', u'2018-05-03', u'22:11:45'), (u'http://www.testone.top/?p=425', u'\u5404\u4e2a\u8fdb\u5236\u4e4b\u95f4\u7684\u8f6c\u6362', u'2018-05-03', u'21:53:04'), (u'http://www.testone.top/?p=423', u'xrange\u4e0erange\u7684\u533a\u522b', u'2018-05-02', u'22:17:13'), (u'http://www.testone.top/?p=418', u'TFTP\u534f\u8baePyhton\u5ba2\u6237\u7aef', u'2018-05-01', u'23:35:40'), (u'http://www.testone.top/?p=409', u'\u4e3b\u7ebf\u7a0b\u7b49\u5f85\u6240\u6709\u5b50\u7ebf\u7a0b\u7ed3\u675f\u7684\u4f7f\u7528\u65b9\u6cd5(\u5e76\u53d1\u6d4b\u8bd5)', u'2018-06-12', u'09:31:47'), (u'http://www.testone.top/?p=406', u'linux\u4e0btop\u8be6\u89e3', u'2018-04-30', u'13:27:44'), (u'http://www.testone.top/?p=397', u'\u7f51\u7edc\u4e2dUDP\u6570\u636e\u7684\u4f20\u8f93', u'2018-04-27', u'21:42:24'), (u'http://www.testone.top/?p=395', u'Python2\u548cpython3\u4f7f\u7528\u7684\u4e00\u4e9b\u533a\u522b', u'2018-04-26', u'00:19:30'), (u'http://www.testone.top/?p=393', u'socket\u5957\u63a5\u5b57', u'2018-05-01', u'20:48:11'), (u'http://www.testone.top/?p=387', u'\u751f\u4ea7\u8005\u4e0e\u6d88\u8d39\u8005\u89e3\u51b3\u8026\u5408\u95ee\u9898', u'2018-04-23', u'22:48:42'), (u'http://www.testone.top/?p=382', u'\u7ebf\u7a0b\u4e2d\u7684\u9501', u'2018-04-22', u'23:53:00'), (u'http://www.testone.top/?p=380', u'\u591a\u7ebf\u7a0b\u7684\u4f7f\u7528\u65b9\u6cd5', u'2018-04-22', u'00:12:51'), (u'http://www.testone.top/?p=364', u'\u4e00\u4e2a\u5173\u4e8e\u7c7b\u4e2d\u4f7f\u7528\u591a\u8fdb\u7a0b\u7ed9\u65b9\u6cd5\u4f20\u53c2\u65e0\u6cd5\u8fd0\u884c\u7684\u95ee\u9898', u'2018-04-19', u'23:26:34'), (u'http://www.testone.top/?p=358', u'Python\u7f16\u7801\u95ee\u9898', u'2018-04-19', u'21:09:44'), (u'http://www.testone.top/?p=356', u'\u5e38\u7528\u7684User Agent', u'2018-04-19', u'13:00:11'), (u'http://www.testone.top/?p=351', u'selenium2library\u5e38\u7528\u5173\u952e\u5b57\u603b\u7ed3\u53caroboot\u57fa\u672c\u683c\u5f0f', u'2018-04-21', u'13:58:30'), (u'http://www.testone.top/?p=349', u'ap\u4e0a\u7ebfac\u6d4b\u8bd5\u4e0b\u53d1\u914d\u7f6eroboot\u811a\u672c', u'2018-04-19', u'09:50:48'), (u'http://www.testone.top/?p=342', u'\u7f51\u6613\u4e91\u8bc4\u8bba\u722c\u866b', u'2018-04-22', u'23:33:47'), (u'http://www.testone.top/?p=340', u'VIM\u5e38\u7528\u64cd\u4f5c', u'2018-04-18', u'13:03:59'), (u'http://www.testone.top/?p=337', u'Python \u81ea\u52a8\u8865\u5168(vim)', u'2018-04-24', u'21:36:51'), (u'http://www.testone.top/?p=335', u'Centos Python\u5347\u7ea7\u53ca\u5378\u8f7d\u53capip\u5b89\u88c5', u'2018-09-11', u'15:16:04'), (u'http://www.testone.top/?p=329', u'802.11\u5e27', u'2018-04-18', u'09:38:22'), (u'http://www.testone.top/?p=323', u'PC\u7f51\u5361\u6293VLAN\u62a5\u6587\u8bbe\u7f6e', u'2018-04-18', u'09:32:07'), (u'http://www.testone.top/?p=317', u'VNC\u8fdc\u7a0b\u684c\u9762\u963f\u91cc\u4e91Centos7', u'2018-05-06', u'12:01:14'), (u'http://www.testone.top/?p=298', u'Arp proxy', u'2018-04-17', u'09:59:47'), (u'http://www.testone.top/?p=284', u'Centos7\u5b89\u88c5\u53ca\u5176\u4e09\u7cfb\u7edf\u5b89\u88c5', u'2018-07-04', u'22:06:28'), (u'http://www.testone.top/?p=280', u'bandsteering', u'2018-04-16', u'13:00:35'), (u'http://www.testone.top/?p=278', u'\u673a\u5668\u4eba\u5fc3\u8df3\u68c0\u6d4b', u'2018-04-16', u'12:56:06'), (u'http://www.testone.top/?p=266', u'amsdu\u548campdu', u'2018-04-16', u'12:50:48'), (u'http://www.testone.top/?p=260', u'FTP Server', u'2018-09-03', u'17:20:53'), (u'http://www.testone.top/?p=258', u'\u4ee3\u7406ip\u7684\u6293\u53d6', u'2018-04-17', u'21:03:51'), (u'http://www.testone.top/?p=254', u'\u6f2b\u6e38\u65f6\u95f4\u7684\u8ba1\u7b97\u5de5\u5177', u'2018-04-16', u'09:37:08'), (u'http://www.testone.top/?p=251', u'\u591a\u7528\u6237\u63a5\u5165\uff0c\u8fc7\u6ee4\u591a\u4f59\u4fe1\u606f\u5de5\u5177', u'2018-04-16', u'09:30:43'), (u'http://www.testone.top/?p=243', u'\u8f6f\u4ef6\u7684\u7f3a\u9677', u'2018-04-16', u'00:00:06'), (u'http://www.testone.top/?p=241', u'crontab\u5b8c\u6210\u5b9a\u65f6\u4efb\u52a1', u'2018-04-18', u'00:21:00'), (u'http://www.testone.top/?p=238', u'\u8fdb\u7a0b\u95f4\u7684\u901a\u4fe1', u'2018-04-15', u'23:24:14'), (u'http://www.testone.top/?p=179', u'mysql\u8fdc\u7a0b\u8bbf\u95ee\u65e0\u6cd5\u8fde\u63a5\u95ee\u9898', u'2018-09-29', u'14:37:31'), (u'http://www.testone.top/?p=170', u'\u591a\u8fdb\u7a0b\u7684\u51e0\u79cd\u4f7f\u7528\u65b9\u6cd5', u'2018-04-20', u'08:43:57'), (u'http://www.testone.top/?p=151', u'Ap-Reboot\u811a\u672c', u'2018-04-19', u'10:00:53'), (u'http://www.testone.top/?p=141', u'\u59b9\u5b50\u7f51\u591a\u8fdb\u7a0b\u722c\u866b', u'2018-07-18', u'21:24:48'), (u'http://www.testone.top/?p=125', u'AP_featuretest \u603b\u7ed3', u'2018-04-16', u'00:07:18'), (u'http://www.testone.top/?p=109', u'Confluence\u642d\u5efa', u'2018-10-07', u'18:53:58'), (u'http://www.testone.top/?p=331', u'\u5bc6\u7801\u4fdd\u62a4\uff1a\u6211\u7684\u8f6f\u4ef6', u'2018-08-09', u'14:38:58')]
(u'http://www.testone.top/?p=1088', u'http://www.testone.top/?p=1077', u'http://www.testone.top/?p=1080', u'http://www.testone.top/?p=1071', u'http://www.testone.top/?p=1067', u'http://www.testone.top/?p=1059', u'http://www.testone.top/?p=1057', u'http://www.testone.top/?p=1055', u'http://www.testone.top/?p=1053', u'http://www.testone.top/?p=1047', u'http://www.testone.top/?p=1032', u'http://www.testone.top/?p=1027', u'http://www.testone.top/?p=1025', u'http://www.testone.top/?p=1021', u'http://www.testone.top/?p=1011', u'http://www.testone.top/?p=1005', u'http://www.testone.top/?p=1003', u'http://www.testone.top/?p=998', u'http://www.testone.top/?p=993', u'http://www.testone.top/?p=990', u'http://www.testone.top/?p=988', u'http://www.testone.top/?p=986', u'http://www.testone.top/?p=982', u'http://www.testone.top/?p=980', u'http://www.testone.top/?p=976', u'http://www.testone.top/?p=964', u'http://www.testone.top/?p=965', u'http://www.testone.top/?p=957', u'http://www.testone.top/?p=955', u'http://www.testone.top/?p=950', u'http://www.testone.top/?p=952', u'http://www.testone.top/?p=948', u'http://www.testone.top/?p=946', u'http://www.testone.top/?p=943', u'http://www.testone.top/?p=940', u'http://www.testone.top/?p=933', u'http://www.testone.top/?p=930', u'http://www.testone.top/?p=927', u'http://www.testone.top/?p=916', u'http://www.testone.top/?p=920', u'http://www.testone.top/?p=911', u'http://www.testone.top/?p=905', u'http://www.testone.top/?p=903', u'http://www.testone.top/?p=888', u'http://www.testone.top/?p=886', u'http://www.testone.top/?p=883', u'http://www.testone.top/?p=881', u'http://www.testone.top/?p=875', u'http://www.testone.top/?p=871', u'http://www.testone.top/?p=866', u'http://www.testone.top/?p=864', u'http://www.testone.top/?p=861', u'http://www.testone.top/?p=852', u'http://www.testone.top/?p=848', u'http://www.testone.top/?p=836', u'http://www.testone.top/?p=842', u'http://www.testone.top/?p=839', u'http://www.testone.top/?p=834', u'http://www.testone.top/?p=832', u'http://www.testone.top/?p=828', u'http://www.testone.top/?p=826', u'http://www.testone.top/?p=817', u'http://www.testone.top/?p=815', u'http://www.testone.top/?p=804', u'http://www.testone.top/?p=801', u'http://www.testone.top/?p=797', u'http://www.testone.top/?p=793', u'http://www.testone.top/?p=791', u'http://www.testone.top/?p=788', u'http://www.testone.top/?p=785', u'http://www.testone.top/?p=782', u'http://www.testone.top/?p=777', u'http://www.testone.top/?p=768', u'http://www.testone.top/?p=762', u'http://www.testone.top/?p=759', u'http://www.testone.top/?p=756', u'http://www.testone.top/?p=751', u'http://www.testone.top/?p=747', u'http://www.testone.top/?p=744', u'http://www.testone.top/?p=738', u'http://www.testone.top/?p=723', u'http://www.testone.top/?p=717', u'http://www.testone.top/?p=715', u'http://www.testone.top/?p=706', u'http://www.testone.top/?p=700', u'http://www.testone.top/?p=690', u'http://www.testone.top/?p=679', u'http://www.testone.top/?p=682', u'http://www.testone.top/?p=675', u'http://www.testone.top/?p=673', u'http://www.testone.top/?p=665', u'http://www.testone.top/?p=663', u'http://www.testone.top/?p=656', u'http://www.testone.top/?p=654', u'http://www.testone.top/?p=649', u'http://www.testone.top/?p=641', u'http://www.testone.top/?p=637', u'http://www.testone.top/?p=639', u'http://www.testone.top/?p=612', u'http://www.testone.top/?p=632', u'http://www.testone.top/?p=629', u'http://www.testone.top/?p=627', u'http://www.testone.top/?p=625', u'http://www.testone.top/?p=620', u'http://www.testone.top/?p=618', u'http://www.testone.top/?p=616', u'http://www.testone.top/?p=614', u'http://www.testone.top/?p=607', u'http://www.testone.top/?p=602', u'http://www.testone.top/?p=604', u'http://www.testone.top/?p=596', u'http://www.testone.top/?p=590', u'http://www.testone.top/?p=587', u'http://www.testone.top/?p=582', u'http://www.testone.top/?p=580', u'http://www.testone.top/?p=574', u'http://www.testone.top/?p=571', u'http://www.testone.top/?p=565', u'http://www.testone.top/?p=563', u'http://www.testone.top/?p=561', u'http://www.testone.top/?p=558', u'http://www.testone.top/?p=555', u'http://www.testone.top/?p=553', u'http://www.testone.top/?p=548', u'http://www.testone.top/?p=543', u'http://www.testone.top/?p=540', u'http://www.testone.top/?p=534', u'http://www.testone.top/?p=531', u'http://www.testone.top/?p=529', u'http://www.testone.top/?p=516', u'http://www.testone.top/?p=520', u'http://www.testone.top/?p=512', u'http://www.testone.top/?p=508', u'http://www.testone.top/?p=506', u'http://www.testone.top/?p=503', u'http://www.testone.top/?p=500', u'http://www.testone.top/?p=495', u'http://www.testone.top/?p=491', u'http://www.testone.top/?p=489', u'http://www.testone.top/?p=481', u'http://www.testone.top/?p=475', u'http://www.testone.top/?p=473', u'http://www.testone.top/?p=455', u'http://www.testone.top/?p=451', u'http://www.testone.top/?p=449', u'http://www.testone.top/?p=445', u'http://www.testone.top/?p=437', u'http://www.testone.top/?p=432', u'http://www.testone.top/?p=428', u'http://www.testone.top/?p=425', u'http://www.testone.top/?p=423', u'http://www.testone.top/?p=418', u'http://www.testone.top/?p=409', u'http://www.testone.top/?p=406', u'http://www.testone.top/?p=397', u'http://www.testone.top/?p=395', u'http://www.testone.top/?p=393', u'http://www.testone.top/?p=387', u'http://www.testone.top/?p=382', u'http://www.testone.top/?p=380', u'http://www.testone.top/?p=364', u'http://www.testone.top/?p=358', u'http://www.testone.top/?p=356', u'http://www.testone.top/?p=351', u'http://www.testone.top/?p=349', u'http://www.testone.top/?p=342', u'http://www.testone.top/?p=340', u'http://www.testone.top/?p=337', u'http://www.testone.top/?p=335', u'http://www.testone.top/?p=329', u'http://www.testone.top/?p=323', u'http://www.testone.top/?p=317', u'http://www.testone.top/?p=298', u'http://www.testone.top/?p=284', u'http://www.testone.top/?p=280', u'http://www.testone.top/?p=278', u'http://www.testone.top/?p=266', u'http://www.testone.top/?p=260', u'http://www.testone.top/?p=258', u'http://www.testone.top/?p=254', u'http://www.testone.top/?p=251', u'http://www.testone.top/?p=243', u'http://www.testone.top/?p=241', u'http://www.testone.top/?p=238', u'http://www.testone.top/?p=179', u'http://www.testone.top/?p=170', u'http://www.testone.top/?p=151', u'http://www.testone.top/?p=141', u'http://www.testone.top/?p=125', u'http://www.testone.top/?p=109', u'http://www.testone.top/?p=331')
(u'\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u91cf\u8bcd', u'\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5143\u5b57\u7b26', u'\u6f2b\u6e38\u65f6\u95f4\u7684\u8ba1\u7b97\u4e0e\u6f2b\u6e38\u65f6\u95f4\u56fe\u8868\u7684\u751f\u6210', u'Scapy\u64cd\u4f5c\u6570\u636e\u5305\u7684\u4e00\u4e9b\u7528\u6cd5', u'Pyinstaller\u6253\u5305exe\u540e\u51fa\u73b0ImportError: No module named Queue\u7684\u95ee\u9898', u'\u4f7f\u7528scapy\u4fee\u6539\u6e90MAC\u7684\u53d1\u5305\u5de5\u5177', u'scapy\u5b58\u5728\u7684\u5185\u5b58\u6cc4\u6f0f\u95ee\u9898', u'grep\u5e38\u7528\u7684\u76f8\u5173\u53c2\u6570', u'\u4fee\u6539\u8fc7\u540e\u7684\u9ad8\u901f\u7387\u53d1\u5305\u5de5\u5177', u'fiddler\u7684\u65ad\u70b9\u6d4b\u8bd5', u'\u4f7f\u7528Vmware workstation\u6765\u89e3\u51b3\u670d\u52a1\u5668\u6302\u6389\u7684\u9ebb\u70e6\u4e8b', u'\u5b9e\u73b0\u6839\u636eIP\u7684\u6765\u8fdb\u884c\u70b9\u8d5e\u7684\u9650\u5236', u'Flask\u4e2d\u51fa\u73b0\u7684\u7f16\u7801\u9519\u8bef\u7684\u95ee\u9898', u'crontab\u5b9a\u65f6\u4efb\u52a1\u7684\u51e0\u4e2a\u95ee\u9898', u'centos7 Ipv6dhcp\u670d\u52a1\u5668\u642d\u5efa', u'Centos7\u4e2dradius\u670d\u52a1\u5668\u7684\u642d\u5efa', u'centos7\u4e2dpppoe\u670d\u52a1\u5668\u642d\u5efa', u'Jquery\u4f7f\u7528Ajax\u83b7\u53d6\u8fd4\u56de\u503c\u7684\u95ee\u9898', u'ajax\u63a5\u6536\u540e\u53f0\u6570\u636e\u53cadataType\u7c7b\u578b\u8bbe\u7f6e', u'Flask\u63a5\u6536Ajax\u7684post\u6570\u636e\u5b9e\u73b0\u5c40\u90e8\u5237\u65b0', u'Flask\u83b7\u53d6Post\u8bf7\u6c42\u7684\u53c2\u6570', u'wordpress\u7684\u6570\u636e\u5e93\u6062\u590d\u95ee\u9898', u'python\u4e2dMysql\u6570\u636e\u5e93\u7684\u8fde\u63a5', u'\u4e09\u5143\u8868\u8fbe\u5f0f', u'AP\u7248\u672c\u95f4\u53cd\u590d\u5347\u7ea7\u6d4b\u8bd5\u811a\u672c', u'python2.7.14\u7684\u6e90\u7801\u5b89\u88c5\u53ca\u811a\u672c\u5b89\u88c5', u'shell\u7684\u7a7a\u5b57\u7b26\u5224\u65ad', u'\u642d\u5efa\u4e00\u4e2a\u67e5\u770b\u670d\u52a1\u5668\u4fe1\u606f\u7684\u7f51\u7ad9', u'jinja2\u6a21\u677f\u5f15\u64ce\u94fe\u63a5\u7684\u5f15\u5165', u'jquery\u7684\u70b9\u51fb\u9690\u85cf\u663e\u793a\u4e8b\u4ef6', u'jinja2\u6a21\u677f\u5f15\u64ce\u7684\u53d8\u91cf\u5f15\u5165', u'\u4e91\u670d\u52a1\u5668\u7684\u5185\u5b58\u548ccpu\u5229\u7528\u7387\u7684\u76d1\u6d4b\u8bb0\u5f55', u'virtualenv\u521b\u5efapython\u7684\u72ec\u7acb\u73af\u5883', u'AP_IP\u5730\u5740\u626b\u63cf\u5de5\u5177', u'*args \u548c **kwargs\u7528\u6cd5\u548c\u53c2\u6570\u4f20\u9012\u6280\u5de7', u'encode\uff0cdecode\u7684\u4f7f\u7528\u548c\u7f16\u7801\u95ee\u9898', u'Ap\u7248\u672c\u5347\u7ea7\u5de5\u5177', u'\u5173\u4e8eUDP\u7ec4\u5305\u7684\u95ee\u9898', u'\u4f7f\u7528\u732b\u773c\u7535\u5f71\u8bc4\u8bba\u5236\u4f5c\u4e00\u5f20\u4e91\u8bcd\u56fe', u'jieba\u5206\u8bcd\u6a21\u5757', u'\u65ad\u8a00\u548c\u5f02\u5e38\u5904\u7406', u'Hardware Nat', u'datetime\u6a21\u5757\u7684\u65f6\u95f4\u8ba1\u7b97', u'Pyecharts\u6570\u636e\u53ef\u89c6\u5316\u56fe\u8868', u'\u5217\u8868\u7684\u6392\u5e8f\u548c\u8ba1\u6570', u'\u732b\u773c\u7535\u5f71\u7684\u8bc4\u8bba\u6570\u636e\u722c\u53d6', u'Firmware\u6279\u91cf\u4e0a\u4f20\u5de5\u51772.0', u'fiddler\u79fb\u52a8\u7aef\u6293\u5305', u'logging\u6a21\u5757\u4e4b\u8f93\u51fa\u53f0\u548c\u65e5\u5fd7\u5904\u7406', u'\u63a7\u5236\u53f0\u6253\u5370\u548clog\u65e5\u5fd7\u8f93\u51fa', u'Configparser\u6a21\u5757\u4e4b\u914d\u7f6e\u6587\u4ef6\u7684\u64cd\u4f5c', u'\u8fdc\u7a0b\u767b\u9646\u51fa\u73b0\u7684WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\u9519\u8bef', u'\u4ee5\u592a\u7f51\u6700\u5927\u4f20\u8f93\u5355\u5143-MTU', u'\u7f51\u7edc\u4e2d\u7684\u4f20\u8f93\u5355\u4f4d', u'\u82b1\u74e3\u7f51\u722c\u866b', u'Alert\u751f\u6210\u5de5\u5177', u'\u4ee3\u7406Ip\u7684\u6293\u53d6\u4e0e\u9a8c\u8bc1', u'requests\u4e24\u79cd\u8bf7\u6c42\u65b9\u5f0f\u6765\u4f20\u9012\u5b57\u5178\u6570\u636e', u'Wxpy\u4e4b\u56fe\u7075\u673a\u5668\u4eba\u7684\u63a5\u5165', u'\u661f\u5ea7\u8fd0\u52bf\u67e5\u8be2\u7684Python\u6a21\u5757\u63a5\u53e3', u'\u67e5\u8be2\u5929\u6c14\u6570\u636ePython\u6a21\u5757\u63a5\u53e3', u'WXPY\u6a21\u5757\u4e4b\u6d88\u606f\u76d1\u542c', u'Wxpy\u6a21\u5757\u4e4b\u6d88\u606f\u53d1\u9001', u'Jmeter\u4f7f\u7528CSV Data\u6765\u53c2\u6570\u5316', u'\u8f93\u51fa\u7279\u5b9a\u7684\u884c\u4e0e\u5217', u'screen\u547d\u4ee4', u'Python\u5b9e\u73b0\u5927\u4e8e32Kpkt/s\u7684\u5305\u901f\u7387\u53d1\u5305\u5de5\u5177', u'\u51e0\u79cd\u83b7\u53d6PC\u7f51\u5361ip\u5730\u5740\u7684\u65b9\u6cd5', u'Python\u5b9e\u73b0\u7684\u6279\u91cf\u4e0a\u4f20Firmware\u5de5\u5177', u'\u4f7f\u7528requests \u53d1\u9001multipart/form-data\u683c\u5f0f\u7684\u6587\u4ef6\u4e0a\u4f20\u8bf7\u6c42', u'\u4f7f\u7528Python\u538b\u7f29\u6587\u4ef6\u65f6\u51fa\u73b0\u7684\u591a\u5c42\u76ee\u5f55\u7684\u95ee\u9898', u'\u514d\u8d39ARP', u'ARP\u5730\u5740\u89e3\u6790\u534f\u8bae', u'NAT-\u7f51\u7edc\u5730\u5740\u8f6c\u6362', u'\u4f7f\u7528TCP\u5728\u5c40\u57df\u7f51\u5185\u4f20\u8f93\u6587\u4ef6', u'frp-\u5185\u7f51\u7a7f\u900f\u8bbf\u95ee\u672c\u5730web\u670d\u52a1', u'Centos7\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8\u811a\u672c', u'\u89e3\u51b3\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8\u65f6\u51fa\u73b0\u7684\u201cservice XXX does not support chkconfig\u201d\u95ee\u9898', u'FRP-\u5185\u7f51\u7a7f\u900f\u6765\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\u5185\u7f51\u670d\u52a1', u'socket-tcp\u7684\u6570\u636e\u4f20\u8f93', u'\u4f7f\u7528UDP\u5728\u5c40\u57df\u7f51\u5185\u4f20\u8f93\u6587\u4ef6\u53ca\u76f8\u5173\u95ee\u9898', u'Paramiko\u6a21\u5757\u4e2d\u5207\u6362\u5230root\u7528\u6237\u7684\u95ee\u9898\u53ca\u4ea4\u4e92\u5f0fshell\u7684\u5b9e\u73b0', u'Pyinstaller\u6253\u5305\u591a\u8fdb\u7a0b\u7684\u95ee\u9898', u'HTTP\u4e4b\u72b6\u6001\u7801', u'HTTP\u4e4b\u8bf7\u6c42\u65b9\u6cd5', u'HTTP\u4e4b\u6d88\u606f\u7ed3\u6784', u'HTTP\u4e4bURL', u'HTTP\u4e4b\u5de5\u4f5c\u539f\u7406', u'Redmine\u7f3a\u9677\u7ba1\u7406\u5e73\u53f0\u642d\u5efa', u'Xampp\u4e2dphpmyadmin\u65e0\u6cd5\u8bbf\u95ee\u89e3\u51b3\u529e\u6cd5', u'testlink\u5e73\u53f0\u642d\u5efa', u'Xampp\u73af\u5883\u642d\u5efa', u'ip\u4f4d\u7f6e\u67e5\u8be2\u811a\u672c', u'nginx\u7684access_log', u'Jmeter\u6c49\u5316', u'\u81ea\u52a8\u90e8\u7f72Vm-care\u670d\u52a1\u811a\u672c', u'Python\u4e4bsubprocess\u6a21\u5757', u'subprocess\u4e2d\u7684Popen\u65b9\u6cd5', u'CentOS7\u73af\u5883\u53d8\u91cf\u6dfb\u52a0', u'wlan\u4e0b\u53d1\u65f6\u957f\u8ba1\u7b97\u811a\u672c', u'base64\u6a21\u5757\u52a0\u5bc6', u'\u4e24\u79cd\u540e\u53f0\u8fd0\u884cpython\u7684\u65b9\u5f0f', u'sed\u5b57\u7b26\u4e32\u66ff\u6362', u'Vim\u952e\u4f4d\u56fe', u'yum\u547d\u4ee4', u'rpm\u547d\u4ee4', u'pstree\u547d\u4ee4', u'free\u547d\u4ee4', u'\u63a7\u5236\u65e0\u7ebf\u7f51\u5361\u7684wifi\u8fde\u63a5\u811a\u672c', u'CMD\u8fde\u63a5wifi(netsh\u547d\u4ee4)', u'headers\u53cadata\u6570\u636e\u683c\u5f0f\u5316\u811a\u672c', u'shell\u5b57\u7b26\u4e32\u622a\u53d6\u4e0e\u8fde\u63a5', u'shell\u5b9e\u73b0\u7684\u81ea\u52a8\u5b89\u88c5OnPremise\u811a\u672c', u'Shell\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u9009\u62e9\u83dc\u5355', u'Python\u4e2d\u83b7\u53d6\u6587\u4ef6\u540d\u6765\u5b9e\u73b0\u9009\u9879\u83dc\u5355', u'sshpass', u'linux\u4e0bexpect\u73af\u5883\u5b89\u88c5', u'tee\u547d\u4ee4', u'watch\u547d\u4ee4', u'Shell\u4e2d\u7684\u8fd0\u7b97\u7b26', u'Shell\u7684For\u5faa\u73af\u8bed\u53e5', u'Shell\u7684\u5224\u65ad\u8bed\u53e5', u'\u5e38\u7528\u8f6f\u4ef6\u7684\u9759\u9ed8\u5b89\u88c5\u65b9\u6cd5\u4ecb\u7ecd', u'\u4e00\u952e\u90e8\u7f72Python\u73af\u5883\u811a\u672c', u'\u5982\u4f55\u83b7\u53d6\u7535\u8111\u4e2d\u6240\u5b58\u5728\u7684\u76d8\u7b26', u'xpath\u4e2d\u5339\u914d\u5c5e\u6027\u5305\u542b\u67d0\u4e2a\u503c', u'Xpath', u'PhantomJS\u548cRequests\u83b7\u53d6Busy\u503c\u811a\u672c', u'\u83b7\u53d6Ap\u7ec8\u7aef\u63a5\u5165\u4fe1\u606f\u7684\u811a\u672c', u'Selenium\u5bf9PhantomJS\u7684\u652f\u6301', u'SSH\u6a21\u5757-paramiko', u'\u4f7f\u7528Pyinstaller\u6253\u5305py\u6587\u4ef6', u'SMTP\u90ae\u4ef6\u7684\u53d1\u9001', u'Python\u4e4brandom\u6a21\u5757', u'\u5229\u7528SSH\u8fdc\u7a0b\u76d1\u6d4b\u5185\u5b58\u4f7f\u7528\u7387\u62a5\u8b66\u811a\u672c', u'Python\u4e4bTIME\u6a21\u5757', u'Python\u4e4bSYS\u6a21\u5757', u'\u6587\u4ef6\u8bbf\u95ee\u65b9\u5f0f a r w b +', u'\u6587\u4ef6\u8bfb\u5199\u64cd\u4f5c', u'\u5229\u7528twilio\u62e8\u6253\u7535\u8bdd\u53d1\u9001\u77ed\u4fe1', u'python\u5f15\u5305\u673a\u5236\u53capath\u7684\u8f6f\u6dfb\u52a0\u65b9\u6cd5', u'Python\u4e4bOS\u6a21\u5757', u'iperf\u7684\u4f7f\u7528', u'arp\u7684\u76f8\u5173\u64cd\u4f5c', u'tcpdump\u7684\u4f7f\u7528', u'wireshark\u8fc7\u6ee4\u89c4\u5219\u603b\u7ed3', u'\u4f7f\u7528Jmeter\u6d4b\u8bd5\u535a\u5ba2', u'\u5b57\u7b26\u4e32\u7684\u64cd\u4f5c', u'\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\u5316', u'\u5404\u4e2a\u8fdb\u5236\u4e4b\u95f4\u7684\u8f6c\u6362', u'xrange\u4e0erange\u7684\u533a\u522b', u'TFTP\u534f\u8baePyhton\u5ba2\u6237\u7aef', u'\u4e3b\u7ebf\u7a0b\u7b49\u5f85\u6240\u6709\u5b50\u7ebf\u7a0b\u7ed3\u675f\u7684\u4f7f\u7528\u65b9\u6cd5(\u5e76\u53d1\u6d4b\u8bd5)', u'linux\u4e0btop\u8be6\u89e3', u'\u7f51\u7edc\u4e2dUDP\u6570\u636e\u7684\u4f20\u8f93', u'Python2\u548cpython3\u4f7f\u7528\u7684\u4e00\u4e9b\u533a\u522b', u'socket\u5957\u63a5\u5b57', u'\u751f\u4ea7\u8005\u4e0e\u6d88\u8d39\u8005\u89e3\u51b3\u8026\u5408\u95ee\u9898', u'\u7ebf\u7a0b\u4e2d\u7684\u9501', u'\u591a\u7ebf\u7a0b\u7684\u4f7f\u7528\u65b9\u6cd5', u'\u4e00\u4e2a\u5173\u4e8e\u7c7b\u4e2d\u4f7f\u7528\u591a\u8fdb\u7a0b\u7ed9\u65b9\u6cd5\u4f20\u53c2\u65e0\u6cd5\u8fd0\u884c\u7684\u95ee\u9898', u'Python\u7f16\u7801\u95ee\u9898', u'\u5e38\u7528\u7684User Agent', u'selenium2library\u5e38\u7528\u5173\u952e\u5b57\u603b\u7ed3\u53caroboot\u57fa\u672c\u683c\u5f0f', u'ap\u4e0a\u7ebfac\u6d4b\u8bd5\u4e0b\u53d1\u914d\u7f6eroboot\u811a\u672c', u'\u7f51\u6613\u4e91\u8bc4\u8bba\u722c\u866b', u'VIM\u5e38\u7528\u64cd\u4f5c', u'Python \u81ea\u52a8\u8865\u5168(vim)', u'Centos Python\u5347\u7ea7\u53ca\u5378\u8f7d\u53capip\u5b89\u88c5', u'802.11\u5e27', u'PC\u7f51\u5361\u6293VLAN\u62a5\u6587\u8bbe\u7f6e', u'VNC\u8fdc\u7a0b\u684c\u9762\u963f\u91cc\u4e91Centos7', u'Arp proxy', u'Centos7\u5b89\u88c5\u53ca\u5176\u4e09\u7cfb\u7edf\u5b89\u88c5', u'bandsteering', u'\u673a\u5668\u4eba\u5fc3\u8df3\u68c0\u6d4b', u'amsdu\u548campdu', u'FTP Server', u'\u4ee3\u7406ip\u7684\u6293\u53d6', u'\u6f2b\u6e38\u65f6\u95f4\u7684\u8ba1\u7b97\u5de5\u5177', u'\u591a\u7528\u6237\u63a5\u5165\uff0c\u8fc7\u6ee4\u591a\u4f59\u4fe1\u606f\u5de5\u5177', u'\u8f6f\u4ef6\u7684\u7f3a\u9677', u'crontab\u5b8c\u6210\u5b9a\u65f6\u4efb\u52a1', u'\u8fdb\u7a0b\u95f4\u7684\u901a\u4fe1', u'mysql\u8fdc\u7a0b\u8bbf\u95ee\u65e0\u6cd5\u8fde\u63a5\u95ee\u9898', u'\u591a\u8fdb\u7a0b\u7684\u51e0\u79cd\u4f7f\u7528\u65b9\u6cd5', u'Ap-Reboot\u811a\u672c', u'\u59b9\u5b50\u7f51\u591a\u8fdb\u7a0b\u722c\u866b', u'AP_featuretest \u603b\u7ed3', u'Confluence\u642d\u5efa', u'\u5bc6\u7801\u4fdd\u62a4\uff1a\u6211\u7684\u8f6f\u4ef6')
(u'2018-10-26', u'2018-10-26', u'2018-10-25', u'2018-10-21', u'2018-10-21', u'2018-10-21', u'2018-10-19', u'2018-10-17', u'2018-10-17', u'2018-10-16', u'2018-10-15', u'2018-10-16', u'2018-10-12', u'2018-10-09', u'2018-09-27', u'2018-09-26', u'2018-09-26', u'2018-09-24', u'2018-09-24', u'2018-09-24', u'2018-09-24', u'2018-09-26', u'2018-09-20', u'2018-09-19', u'2018-09-18', u'2018-09-18', u'2018-09-17', u'2018-09-15', u'2018-09-26', u'2018-09-26', u'2018-09-26', u'2018-09-26', u'2018-09-11', u'2018-09-10', u'2018-09-08', u'2018-09-10', u'2018-09-04', u'2018-09-03', u'2018-09-03', u'2018-09-03', u'2018-09-03', u'2018-08-30', u'2018-08-28', u'2018-08-27', u'2018-08-28', u'2018-08-24', u'2018-08-23', u'2018-08-22', u'2018-08-22', u'2018-08-21', u'2018-08-21', u'2018-08-20', u'2018-08-19', u'2018-08-18', u'2018-08-18', u'2018-08-15', u'2018-08-14', u'2018-08-13', u'2018-08-12', u'2018-08-12', u'2018-08-12', u'2018-08-11', u'2018-08-11', u'2018-08-09', u'2018-08-09', u'2018-08-08', u'2018-08-08', u'2018-08-06', u'2018-08-05', u'2018-08-04', u'2018-08-03', u'2018-08-01', u'2018-07-31', u'2018-07-28', u'2018-07-24', u'2018-07-23', u'2018-07-22', u'2018-07-22', u'2018-07-23', u'2018-07-22', u'2018-08-19', u'2018-07-19', u'2018-07-18', u'2018-07-17', u'2018-07-16', u'2018-07-16', u'2018-07-15', u'2018-07-16', u'2018-07-12', u'2018-07-12', u'2018-07-11', u'2018-07-11', u'2018-07-09', u'2018-07-09', u'2018-07-09', u'2018-07-07', u'2018-07-05', u'2018-07-05', u'2018-07-04', u'2018-07-07', u'2018-07-01', u'2018-07-04', u'2018-06-30', u'2018-06-30', u'2018-06-28', u'2018-06-28', u'2018-06-28', u'2018-06-26', u'2018-10-16', u'2018-06-25', u'2018-08-14', u'2018-06-11', u'2018-06-11', u'2018-06-11', u'2018-06-11', u'2018-06-11', u'2018-06-11', u'2018-06-05', u'2018-06-11', u'2018-06-04', u'2018-06-04', u'2018-06-01', u'2018-05-31', u'2018-07-07', u'2018-05-29', u'2018-05-27', u'2018-05-27', u'2018-07-07', u'2018-05-27', u'2018-05-27', u'2018-05-17', u'2018-05-14', u'2018-05-13', u'2018-05-13', u'2018-07-07', u'2018-05-10', u'2018-05-10', u'2018-05-10', u'2018-05-09', u'2018-05-08', u'2018-05-07', u'2018-05-07', u'2018-05-06', u'2018-05-05', u'2018-05-05', u'2018-05-05', u'2018-05-05', u'2018-05-03', u'2018-05-03', u'2018-05-03', u'2018-05-02', u'2018-05-01', u'2018-06-12', u'2018-04-30', u'2018-04-27', u'2018-04-26', u'2018-05-01', u'2018-04-23', u'2018-04-22', u'2018-04-22', u'2018-04-19', u'2018-04-19', u'2018-04-19', u'2018-04-21', u'2018-04-19', u'2018-04-22', u'2018-04-18', u'2018-04-24', u'2018-09-11', u'2018-04-18', u'2018-04-18', u'2018-05-06', u'2018-04-17', u'2018-07-04', u'2018-04-16', u'2018-04-16', u'2018-04-16', u'2018-09-03', u'2018-04-17', u'2018-04-16', u'2018-04-16', u'2018-04-16', u'2018-04-18', u'2018-04-15', u'2018-09-29', u'2018-04-20', u'2018-04-19', u'2018-07-18', u'2018-04-16', u'2018-10-07', u'2018-08-09')
(u'17:26:39', u'17:08:05', u'21:11:55', u'15:24:32', u'14:39:00', u'14:42:57', u'22:47:40', u'23:26:38', u'17:53:58', u'11:17:57', u'17:58:45', u'09:50:27', u'15:44:08', u'21:47:09', u'16:41:36', u'17:54:37', u'16:19:24', u'21:29:22', u'21:29:44', u'21:29:56', u'21:30:17', u'09:48:58', u'23:38:21', u'23:40:17', u'23:22:17', u'14:20:39', u'21:59:43', u'16:05:35', u'09:48:07', u'09:48:20', u'09:47:44', u'09:47:14', u'15:54:33', u'21:11:14', u'16:57:04', u'21:11:59', u'16:19:18', u'22:54:18', u'14:36:16', u'11:54:42', u'10:31:07', u'17:17:29', u'22:48:35', u'22:15:18', u'10:44:15', u'11:15:05', u'12:48:38', u'21:18:16', u'11:47:45', u'22:41:15', u'17:22:46', u'10:49:38', u'17:03:00', u'15:35:37', u'15:28:27', u'17:28:16', u'20:21:26', u'18:07:33', u'21:13:24', u'20:30:46', u'20:15:58', u'14:56:24', u'14:53:09', u'17:47:09', u'11:57:08', u'23:01:35', u'22:39:33', u'22:34:24', u'15:35:52', u'21:14:29', u'22:32:41', u'23:05:44', u'22:21:28', u'22:45:53', u'23:57:00', u'23:00:32', u'18:56:09', u'18:32:23', u'23:00:19', u'15:27:19', u'17:02:40', u'22:05:24', u'22:11:40', u'22:32:56', u'22:09:45', u'22:07:16', u'15:49:28', u'11:49:39', u'16:21:48', u'10:19:34', u'23:33:07', u'19:58:54', u'22:28:09', u'22:27:44', u'10:52:55', u'22:59:35', u'23:00:27', u'23:00:02', u'22:07:08', u'23:00:46', u'18:00:47', u'22:02:57', u'15:18:38', u'11:36:57', u'16:42:52', u'14:59:59', u'14:36:32', u'16:44:16', u'09:51:33', u'22:55:10', u'20:23:49', u'23:23:22', u'23:23:43', u'22:44:40', u'22:44:07', u'22:43:33', u'22:42:57', u'15:47:30', u'16:28:39', u'23:25:19', u'23:01:11', u'23:57:50', u'22:57:09', u'23:01:58', u'22:29:26', u'23:09:41', u'23:07:37', u'23:03:14', u'23:06:56', u'23:06:36', u'22:59:52', u'23:25:11', u'22:35:00', u'12:32:12', u'23:02:40', u'23:08:41', u'22:14:26', u'20:48:54', u'23:34:34', u'23:13:58', u'23:07:36', u'22:55:46', u'23:18:11', u'23:35:53', u'23:17:43', u'23:37:41', u'17:56:34', u'23:11:32', u'22:11:45', u'21:53:04', u'22:17:13', u'23:35:40', u'09:31:47', u'13:27:44', u'21:42:24', u'00:19:30', u'20:48:11', u'22:48:42', u'23:53:00', u'00:12:51', u'23:26:34', u'21:09:44', u'13:00:11', u'13:58:30', u'09:50:48', u'23:33:47', u'13:03:59', u'21:36:51', u'15:16:04', u'09:38:22', u'09:32:07', u'12:01:14', u'09:59:47', u'22:06:28', u'13:00:35', u'12:56:06', u'12:50:48', u'17:20:53', u'21:03:51', u'09:37:08', u'09:30:43', u'00:00:06', u'00:21:00', u'23:24:14', u'14:37:31', u'08:43:57', u'10:00:53', u'21:24:48', u'00:07:18', u'18:53:58', u'14:38:58')

二.一个本地ip匹配的测试

筛选本地的ipv4地址,需要在两端加入\b来匹配一个位置,不然例如885.22.2.3这种地址也是能匹配到的

result = Popen('ipconfig',shell=True,stdout=PIPE)
result = result.stdout.read().decode('gbk').encode('utf-8')
print result
rule = re.compile(r'\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b')
result_str = re.findall(rule,result)
print result_str

输出:
['192.168.191.1', '255.255.255.0', '192.168.121.101', '255.255.255.0', '192.168.121.1', '192.168.121.1', '255.255.255.0', '192.168.215.1', '255.255.255.0']

三.匹配bilibili的链接信息

(r'(?:href=”//?)(www\..*?)(?:”\s??)’),匹配href中的地址,顺便简单的写了一个死链的检测

html = requests.get('http://www.bilibili.com').text
rule = re.compile(r'(?:href="//?)(www\..*?)(?:"\s??)')
result = re.findall(rule,html)  #返回一个列表,元素为元组
url_list = []
for i in result:
    url_list.append('http://%s'%i)
for i in url_list:
    f = requests.get(i)
    a = re.findall(rule, f.text)
    if len(url_list) <=1000:
        for t in a:
            t = 'http://%s' % t
            if t not in url_list:
                url_list.append(t)
    print '地址:%s'%i,f.status_code,len(url_list)
输出:
地址:http://www.bilibili.com/video/av34583334/ 403 1229
地址:http://www.bilibili.com/bangumi/media/md139432/ 200 1229
地址:http://www.bilibili.com/bangumi/media/md139432/edit 200 1229
地址:http://www.bilibili.com/video/av17376693/ 403 1229
地址:http://www.bilibili.com/bangumi/media/md142552/ 200 1229
地址:http://www.bilibili.com/bangumi/media/md142552/edit 200 1229
地址:http://www.bilibili.com/video/av32686983/ 403 1229
地址:http://www.bilibili.com/bangumi/media/md140492/ 200 1229

403应该是没有加入其他的一些headers信息所导致的,服务器上文件或目录拒绝访问,突然想了一下可以写一个自动化检测网站死链的脚本

这样可以轻松的找出一些死链,404,或者500类似的错误了,一些失效的链接

 

一些常用的正则

\d+(\.\d*)? 任意整数和浮点数 0.004 2 75.
\b[^\Wa-z0-9_][^\WA-Z0-9_]*\b 首字母只能大写 Boo Foo
^http:\/\/([\w-]+(\.[\w-]+)+(\/[\w-.\/\?%&=\u4e00-\u9fa5]*)?)?$ 验证网址 http://www.baidu.com/?id=1
^[\u4e00-\u9fa5]{0,}$ 验证汉字 汉字汉字
\w+([-+.’]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* 验证电子邮件 example@163.com
^[1-9]([0-9]{16}|[0-9]{13})[xX0-9]$ 验证身份证 14525419951215445X
^13[0-9]{1}[0-9]{8}|^15[9]{1}[0-9]{8} 验证手机号 138459572***
^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$ 验证IP 192.168.1.1
^[a-zA-Z0-9]+([a-zA-Z0-9\-\.]+)?\.s|)$ 验证域名 baidu.com
^([a-zA-Z]\:|\\)\\([^\\]+\\)*[^\/:*?”<>|]+\.txt(l)?$ 验证文件路径 C:\user\wo
<(.*)>(.*)<\/(.*)>|<(.*)\/> HTML标签匹配 xxxx
通配符 含义 正则示例 匹配结果
reg1 | reg2 匹配正则表达式reg1或reg2 foo | bar foo
. 匹配任何字符(\n除外) a.a abc
^ 匹配字符串起始部分 ^a ab….
$ 匹配字符串终止部分 .txt$ a.txt
* 匹配0次或者多次前面出现的正则表达式 a* aaaaa
+ 匹配1次或者多次前面出现的正则表达式 [a-z]+ aasx
? 匹配0次或者1次前面出现的正则表达式 first? first
{N} 匹配N次前面出现的正则表达式 *.c{2} first.c abc.c
{M,N} 匹配M~N次前面出现的正则表达式 *.c{0,1} one.c
[…] 匹配来自字符集的任意单个字符 [abc] b
[…x-y…] 匹配x~y范围中的任意单个字符 [0-9] 9
[^…] 不匹配次字符集中任意单个字符 [^0-9] a
(*|+|?|{})? 匹配上面频繁出现符号的非贪婪版 (*|+|?|{})? ({})
(…) 匹配封闭的正则表达式,然后另存为子组 ([0-1][0-9])? 12
\d 匹配任何十进制数字 \d.txt 1.txt
\w 匹配任何字母数字字符 \w{2}txt 1.txt
\s 匹配任何空格字符 a\sb a b
\b 匹配任何单词边界 The\bdog The dog
\N 匹配已保存的子组 ([0-9])\1 1
\. 匹配”.”这个字符 a\.txt a.txt