[weibo] fix AttributeError in 'user' extractor (#5022)

yet another bug caused by a383eca7
This commit is contained in:
Mike Fährmann
2024-01-05 17:18:33 +01:00
parent 0ab0a10d2d
commit b4bcf40278
2 changed files with 40 additions and 10 deletions

View File

@@ -225,9 +225,6 @@ class WeiboUserExtractor(WeiboExtractor):
pattern = USER_PATTERN + r"(?:$|#)"
example = "https://weibo.com/USER"
def initialize(self):
pass
def items(self):
base = "{}/u/{}?tabtype=".format(self.root, self._user_id())
return self._dispatch_extractors((