会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
李雷雷
day day up.
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
下一页
2014年10月9日
收集一些好用的搜索引擎
摘要: 谷歌替代品:http://search.1sohu.com/http://www.tmd123.com网盘搜索工具:1、云搜http://yunsou.1sohu.com/2、壹搜网盘搜索引擎3、盘易搜盘易搜-百度网盘搜索4、BD盘搜索百度网盘资源搜索引擎5、网盘搜索引擎百度网盘搜索引擎6、百度网盘...
阅读全文
posted @ 2014-10-09 17:49 李雷雷alexkn
阅读(628)
评论(2)
推荐(0)
2014年10月4日
一个简单的scrapy爬虫抓取豆瓣刘亦菲的图片地址
摘要: 一.第一步是创建一个scrapy项目sh-3.2# scrapy startproject liuyifeiImagesh-3.2# chmod -R 777 liuyifeiImage/二.分析图片特征1.解决分页url部分:我们爬虫的start_url是"http://movie.douban....
阅读全文
posted @ 2014-10-04 13:40 李雷雷alexkn
阅读(3796)
评论(4)
推荐(0)
2014年10月1日
应用python编写简单新浪微博应用(一)
摘要: 转载至:http://blog.sina.com.cn/s/blog_6c39196501016o7n.html首先,你要有一个新浪微博账号。 申请页面:http://weibo.com 其次,你要在新浪微博的开发平台中创建一个应用,获取自己专属的App Key和App Secret。 申请页...
阅读全文
posted @ 2014-10-01 18:41 李雷雷alexkn
阅读(438)
评论(0)
推荐(0)
一个简单的python爬虫,以豆瓣妹子“http://www.dbmeizi.com/category/2?p= ”为例
摘要: 本想抓取网易摄影上的图,但发现查看html源代码时找不到图片的url,但firebug却能定位得到。(不知道为什么???)目标是抓取前50页的爆乳图,代码如下:import urllib2,urllib,re,os'''http://www.dbmeizi.com/category/2?p=%'''...
阅读全文
posted @ 2014-10-01 18:08 李雷雷alexkn
阅读(2001)
评论(0)
推荐(0)
2014年9月29日
PYTHON FABRIC实现远程操作和部署
摘要: 转载至:http://wklken.me/posts/2013/03/25/python-tool-fabric.htmlfabrictitle是开发,但是同时要干开发测试还有运维的活 (o(╯□╰)o)近期接手越来越多的东西,发布和运维的工作相当机械,加上频率还蛮高,导致时间浪费还是优点多。修复b...
阅读全文
posted @ 2014-09-29 16:27 李雷雷alexkn
阅读(530)
评论(0)
推荐(0)
2014年9月27日
python中的Unittest常用方法
摘要: import unittestclass SimpleUnitTest(unittest.TestCase): def test_Fail(self): self.failUnless(True) def test_Fail(self): self.failI...
阅读全文
posted @ 2014-09-27 11:40 李雷雷alexkn
阅读(1371)
评论(0)
推荐(0)
搞懂function(*args,**kwargs)
摘要: 给出一个例子:def foo(*args,**kwargs): print 'args=',args print 'kwargs=',kwargs print '---------------------------'if __name__=='__main__': foo(...
阅读全文
posted @ 2014-09-27 11:37 李雷雷alexkn
阅读(1217)
评论(0)
推荐(0)
2014年9月12日
python将文件写成csv文件保存到本地
摘要: 举个例子:import csvimport ospath='/tmp/'file='test.csv'def generate_csv(path,file): if not os.path.exists(path): os.mkdir(path) files=os.path...
阅读全文
posted @ 2014-09-12 15:59 李雷雷alexkn
阅读(3677)
评论(0)
推荐(0)
2014年9月11日
python读取配置文件
摘要: 从/mnt目录下读取section配置文件sample.ini[db]host=192.168.1.116hostaddr=192.168.1.116port=5432dbname=class4_dbuser=class4_userpassword =[web_db]host=db.$hostadd...
阅读全文
posted @ 2014-09-11 11:32 李雷雷alexkn
阅读(224)
评论(0)
推荐(0)
2014年9月4日
ubuntu14.04安装sipp3.2
摘要: 本来在centos里不好装的软件,往往ubuntu里会很好装,但sipp恰恰相反,ubuntu里能装死你。做VOIP测试的话,有时候为了模拟通话中更好的抓包,在环境简陋,又不想使用集线器引起广播风暴的前提下,sipp最好装在本机里,因此,对于装Ubuntu的人,不得不做死装一把!(这东西搞了我2个小...
阅读全文
posted @ 2014-09-04 16:42 李雷雷alexkn
阅读(837)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
下一页
公告