1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-26 16:23:57 +00:00

BaseSgmlLinkExtractor: Fixed unknown_endtag() so that it only set current_link=None when the end tag match the opening tag

This commit is contained in:
Benoit Blanchon 2013-12-07 19:47:50 +01:00
parent 72543c9ef0
commit 62f7171942

View File

@ -74,7 +74,8 @@ class BaseSgmlLinkExtractor(FixedSGMLParser):
self.current_link = link
def unknown_endtag(self, tag):
self.current_link = None
if self.scan_tag(tag):
self.current_link = None
def handle_data(self, data):
if self.current_link: