[common] add __str__ method for Extractor class
This commit is contained in:
@@ -74,6 +74,9 @@ class Extractor():
|
||||
self._cfgpath = ("extractor", self.category, self.subcategory)
|
||||
self._parentdir = ""
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.__class__.__name__} <{self.url}>"
|
||||
|
||||
@classmethod
|
||||
def from_url(cls, url):
|
||||
if isinstance(cls.pattern, str):
|
||||
|
||||
Reference in New Issue
Block a user