上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页
摘要: 无捕获分组当你要将一部分规则作为一个整体对它进行某些操作,比如指定其重复次数时,你需要将这部分规则用(?:)把它包围起来。分支条件在正则表达式中,分支条件是一个很常用的条件。满足条件A 或者 满足条件B ,这个时候我们就可以使用分支条件了。分支条件使用的符号为 |代码示例:我们突然发现,... 阅读全文
posted @ 2014-04-30 22:17 r3call 阅读(5441) 评论(2) 推荐(0) 编辑
摘要: 有人说:virtualenv、fabric 和 pip 是 pythoneer 的三大神器。不管认不认同,至少要先认识一下,pip现在倒是经常用到,virtualenv第一次听说,不过,总得尝试一下吧。一、安装pip install virtualenv因为我已经安装了pip,那么就直接用pip来安... 阅读全文
posted @ 2014-04-29 20:18 r3call 阅读(55373) 评论(0) 推荐(3) 编辑
摘要: 事故:今天写vpnbook.py的时候(参见vpnbook.py),遇到一个问题,匹配到太多的数据,而且是我不需要的。我要对某个html进行解析,又为了跨平台和快速使用,就没有使用第三方库(比如BeautifulSoup)获得的html如下 1 2 3 4 5 6 7 ... 阅读全文
posted @ 2014-04-29 01:57 r3call 阅读(5821) 评论(1) 推荐(0) 编辑
摘要: Usage is simple:import pyperclippyperclip.copy('The text to be copied to the clipboard.')spam = pyperclip.paste()code:# Pyperclip v1.3# A cross-platfo... 阅读全文
posted @ 2014-04-28 17:36 r3call 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: vpnbook提供免费的vpn服务,当然了,免费的肯定有限制,vpnbook的限制在于速度,一般只有10kb/s左右,用来看看网页还可以,当主力就不够了。话说IE存在的意义就是用来下载其它浏览器,我写这个脚本也是这个意思,有时候下载其它代理程序首先得番茄,那么,这个慢悠悠的vpn就是没办法的办法了。... 阅读全文
posted @ 2014-04-28 17:25 r3call 阅读(3697) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env ruby #表示ruby的执行环境=begin # ruby中用=begin来表示注释的开始.$$$ $. ... 阅读全文
posted @ 2014-04-28 00:49 r3call 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: .├── 1.txt├── addons│ ├── country-scanner│ ├── gggooglescan│ ├── hunter│ └── verify-nikto├── CHANGELOG├── INSTALL├── lib│ ├── colour.rb│ ├── extend-ht... 阅读全文
posted @ 2014-04-27 23:50 r3call 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: def ConnectTest(url): try: response = requests.get(url) return response.status_code except requests.exceptions.ConnectionError: ... 阅读全文
posted @ 2014-04-26 23:14 r3call 阅读(323) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# coding:utf-8import reimport urlparse# 解析urldef ParseUrl(url): if not re.search(r"^http[s]?://",url): if ":443" in url: ... 阅读全文
posted @ 2014-04-26 23:00 r3call 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ### This file is part of WhatWeb and may be subject to# redistribution and commercial restrictions. Please see the WhatWeb# web site for more informat... 阅读全文
posted @ 2014-04-19 02:01 r3call 阅读(508) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页