mirror of https://github.com/scrapy/scrapy.git
fixed RFPDupeFilter persistence
This commit is contained in:
parent
97f2fb302d
commit
97d080ee26
|
|
@ -36,6 +36,7 @@ class RFPDupeFilter(BaseDupeFilter):
|
|||
self.logger = logging.getLogger(__name__)
|
||||
if path:
|
||||
self.file = open(os.path.join(path, 'requests.seen'), 'a+')
|
||||
self.file.seek(0)
|
||||
self.fingerprints.update(x.rstrip() for x in self.file)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Reference in New Issue