摘要:
这是因为__init__方法没有继承父类解决办法:# -*- coding:utf-8 -*-from selenium import webdriverfrom scrapy.contrib.spiders import CrawlSpider, Rulefrom scrapy.contrib.l... 阅读全文
摘要:
// +----------------------------------------------------------------------namespace Home\Controller;include '/opt/xunsearch/sdk/php/lib/XS.php';/** *... 阅读全文
摘要:
ln -s /opt/lampp/bin/php /usr/local/bin/php 阅读全文
摘要:
/opt/lampp/bin/mysql -u root 阅读全文
摘要:
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... 阅读全文
摘要:
documentdocument_article 阅读全文
摘要:
Web server allows .htaccess files # 这一项检查不通过解决:In conf/extra/httpd-vhosts.conf, add the line AllowOverride All for the website that you have having pr... 阅读全文
摘要:
#coding:utf-8import redef strip_tags(string, allowed_tags=''): if allowed_tags != '': # Get a list of all allowed tag names. allowed_tags = all... 阅读全文
摘要:
lis = response.xpath("//ul/li")for li in lis: src = li.xpath("img/@src") # 如果xpath表达式是"//img/@src"会把整个页面的所有图片src提取出来 alt = li.xpath("img/@alt") 阅读全文
摘要:
看篮球比赛,经常听到解说说某一队的士气一下就上来了,然后反超比分,赢下比赛。也听说某某领导人很有领导力,能够激发团队的士气。。。 过去听到这些,对于士气只是一个模糊的认识,感觉就是士气对成功完成任务有帮助。 上个周末心情有点不好,感觉自己好多东西都不会。 周日采集了一个网站的内容,因为跟朋... 阅读全文