reuse connection adapters from parent extractors

This commit is contained in:
Mike Fährmann
2020-05-12 23:52:01 +02:00
parent f8f95e68a7
commit a1e739b96c
2 changed files with 12 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2019 Mike Fährmann
# Copyright 2015-2020 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -28,6 +28,7 @@ class RecursiveExtractor(Extractor):
self.session.mount("file://", FileAdapter())
page = self.request(self.url.partition(":")[2]).text
del self.session.adapters["file://"]
yield Message.Version, 1
with extractor.blacklist(blist):