CrawlSpider-爬取一般网站常用的spider。其定义了一些规则(rule)来提供跟进link的方便的机制。 也许该spider并不是完全适合您的特定网站或项目,但其对很多情况都使用。 因此您可以以其为起点,根据需求修改部分方法。当然您也可以实现自己的spider。...
分类:
其他好文 时间:
2014-07-20 10:18:09
阅读次数:
225
There is a link about how to re-set password.http://database.51cto.com/art/201010/229528.htmwords in short,two lines mysql> UPDATE mysql.user SET p...
分类:
数据库 时间:
2014-07-19 19:12:31
阅读次数:
410
题意:一个送披萨的,每次送外卖不超过10个地方,给你这些地方之间的时间,求送完外卖回到店里的总时间最小。解法一: 这个n不大即使是NP问题也才1E6多一些所以可以dfs();具体的回溯方法结合dance link 就可以; #include #include #include #include .....
分类:
其他好文 时间:
2014-07-19 14:12:38
阅读次数:
148
一: 文件类型判断:1.is_dir() 判断是不是目录2.is_file() 判断是不是文件3.is_executeable() 判断是不是可执行文件4.is_readable() 判断是不是可读文件5.is_writable() 判断是不是可写文件6.is_link() 判断是不是快捷方式二:文...
分类:
Web程序 时间:
2014-07-19 09:02:45
阅读次数:
236
链接错误: a subsystem can't be inferred and must be defined必须指定一个子系统。 Q:为什么? A:暂时不知道。改天看文档,弄明白。编译:ml/c/coffxx.asm链接:link/subsytem:windowsxx.obj
分类:
其他好文 时间:
2014-07-19 08:29:49
阅读次数:
185
开启dblink的 oracle net trace/tracing --对dblink进行跟踪的方法...
分类:
数据库 时间:
2014-07-19 02:36:26
阅读次数:
266
如果需要定位一组对象,需要使用以下方法,会返回一个listfind_elements_by_namefind_elements_by_xpathfind_elements_by_link_textfind_elements_by_partial_link_textfind_elements_by_t...
分类:
其他好文 时间:
2014-07-19 00:22:25
阅读次数:
163
以下方法都可以用来定位某个对象,优先选择id,name.find_element_by_idfind_element_by_namefind_element_by_xpathfind_element_by_link_textfind_element_by_partial_link_textfind_...
分类:
其他好文 时间:
2014-07-19 00:06:04
阅读次数:
198
建立一个win32 console application的话,linker的/subsystem选项应该为CONSOLE,可以在VC开发环境的project->setting->link->project option中看到!接下来我们再看看应用程序是如何运行的!我们知道用VC编写的程序,运行的时...
分类:
其他好文 时间:
2014-07-18 14:18:52
阅读次数:
237
通过npm link使项目中所用的包及时更新到该包的最新代码。...
分类:
其他好文 时间:
2014-07-18 11:00:53
阅读次数:
259