[booru] refactor 'tags' and 'notes' extraction
- move HTML request for post pages into its own function - move gelbooru_v02.py notes extraction to gelbooru.py since it only works there - clean up some code
This commit is contained in:
@@ -63,7 +63,7 @@ class SankakuExtractor(BooruExtractor):
|
||||
def _check_expired(self, response):
|
||||
return not response.history or '.com/expired.png' not in response.url
|
||||
|
||||
def _extended_tags(self, post):
|
||||
def _tags(self, post, page):
|
||||
tags = collections.defaultdict(list)
|
||||
types = self.TAG_TYPES
|
||||
for tag in post["tags"]:
|
||||
|
||||
Reference in New Issue
Block a user