[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._cfgpath = ("extractor", self.category, self.subcategory)
|
||||||
self._parentdir = ""
|
self._parentdir = ""
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f"{self.__class__.__name__} <{self.url}>"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_url(cls, url):
|
def from_url(cls, url):
|
||||||
if isinstance(cls.pattern, str):
|
if isinstance(cls.pattern, str):
|
||||||
|
|||||||
Reference in New Issue
Block a user