0

I need to match attribute against some strings. I tried to add the span attribute to sgmllinkextractor but it seems to ignore it since it has no link in it.

is there an option to use a callback function that will be called when no link could be extract via linkExtractor?

I want to match the page against some string if and only if there was no match with linkExtractor.

Thanks

4

1 回答 1

0

尝试继承 BaseSpider而不是使用 CrawlSpider。

于 2012-07-21T16:08:31.103 回答