上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: 这是因为__init__方法没有继承父类解决办法:# -*- coding:utf-8 -*-from selenium import webdriverfrom scrapy.contrib.spiders import CrawlSpider, Rulefrom scrapy.contrib.l... 阅读全文
posted @ 2015-05-19 15:29 捕蛇者说 阅读(2311) 评论(0) 推荐(1) 编辑
摘要: // +----------------------------------------------------------------------namespace Home\Controller;include '/opt/xunsearch/sdk/php/lib/XS.php';/** *... 阅读全文
posted @ 2015-05-15 16:46 捕蛇者说 阅读(358) 评论(0) 推荐(0) 编辑
摘要: ln -s /opt/lampp/bin/php /usr/local/bin/php 阅读全文
posted @ 2015-05-15 16:14 捕蛇者说 阅读(240) 评论(0) 推荐(0) 编辑
摘要: /opt/lampp/bin/mysql -u root 阅读全文
posted @ 2015-05-08 13:16 捕蛇者说 阅读(237) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/11990708/error-cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysq1.pkill -9 mysqld2.rm -f /var/r... 阅读全文
posted @ 2015-05-08 11:43 捕蛇者说 阅读(494) 评论(0) 推荐(0) 编辑
摘要: documentdocument_article 阅读全文
posted @ 2015-05-07 17:14 捕蛇者说 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Web server allows .htaccess files # 这一项检查不通过解决:In conf/extra/httpd-vhosts.conf, add the line AllowOverride All for the website that you have having pr... 阅读全文
posted @ 2015-05-07 13:59 捕蛇者说 阅读(577) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8import redef strip_tags(string, allowed_tags=''): if allowed_tags != '': # Get a list of all allowed tag names. allowed_tags = all... 阅读全文
posted @ 2015-05-06 15:13 捕蛇者说 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: lis = response.xpath("//ul/li")for li in lis: src = li.xpath("img/@src") # 如果xpath表达式是"//img/@src"会把整个页面的所有图片src提取出来 alt = li.xpath("img/@alt") 阅读全文
posted @ 2015-04-28 10:22 捕蛇者说 阅读(11330) 评论(0) 推荐(1) 编辑
摘要: 看篮球比赛,经常听到解说说某一队的士气一下就上来了,然后反超比分,赢下比赛。也听说某某领导人很有领导力,能够激发团队的士气。。。 过去听到这些,对于士气只是一个模糊的认识,感觉就是士气对成功完成任务有帮助。 上个周末心情有点不好,感觉自己好多东西都不会。 周日采集了一个网站的内容,因为跟朋... 阅读全文
posted @ 2015-04-27 11:05 捕蛇者说 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页