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

CrawlSpiderを使用する代わりに、BaseSpiderをサブクラス化してみてください。

于 2012-07-21T16:08:31.103 に答える