代码改变世界

阅读排行榜

初识python之 APP store排行榜 蜘蛛抓取(二)

2014-08-26 18:10 by etodream, 2142 阅读, 收藏,
摘要: #-*- coding: utf-8 -*-import urllib2import urllibimport reimport timeimport MySQLdbimport time,datetime#from datetime import date#----------- APP stor... 阅读全文

初识python之 APP store排行榜 蜘蛛抓取(一)

2014-08-17 20:49 by etodream, 1176 阅读, 收藏,
摘要: 直接上干货!!采用python 2.7.5-windows打开http://www.apple.com/cn/itunes/charts/free-apps/如上图可以见采用的是utf-8 编码 经过一番思想斗争 编码如下 (拍砖别打脸)#coding=utf-8import urllib2 ... 阅读全文

初识python之 APP store排行榜 蜘蛛抓取(三) ---多线程版

2015-01-05 01:07 by etodream, 604 阅读, 收藏,
摘要: #coding=utf-8import timeimport urllib2import Queueimport threadingimport xml.dom.minidomimport MySQLdb#获取数据def get_appstop_data(url): myurl = url ... 阅读全文

PHP创建日志记录(已封装)

2014-08-26 18:24 by etodream, 379 阅读, 收藏,
摘要: 1 _filepath = empty($dir) ? '': $dir;12 $this->_filename = empty($filename) ? date('Y-m-d',time()).'.log' : $filename;13 14 //创建路径15 ... 阅读全文

干程序 身体才是本钱!

2014-08-01 11:30 by etodream, 236 阅读, 收藏,
摘要: 谈起程序猿就 想起 加班、熬夜、颓废(也有种高大上感觉的...),程序猿是非常爱学习的一种动物,每天下班回家就开始“饱读各种圣贤书”,每天熬夜到一两点!原以为学习应该能有进步,但是不但没有所成长反而更加不如以前了.“实践发现”熬夜学习不但没有效率,对身体残害更大”.每天起床 黑眼圈、脑袋发懵、一天都... 阅读全文