MCPcopy
hub / github.com/mikf/gallery-dl / items

Method items

gallery_dl/extractor/xfolio.py:54–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 example = "https://xfolio.jp/portfolio/USER/works/12345"
53
54 def items(self):
55 creator, work_id = self.groups
56 url = f"{self.root}/portfolio/{creator}/works/{work_id}"
57 html = self.request(url).text
58
59 work = self._extract_data(html)
60 files = self._extract_files(html, work)
61 work["count"] = len(files)
62
63 yield Message.Directory, "", work
64 for work["num"], file in enumerate(files, 1):
65 file.update(work)
66 yield Message.Url, file["url"], file
67
68 def _extract_data(self, html):
69 creator, work_id = self.groups

Callers

nothing calls this directly

Calls 4

_extract_dataMethod · 0.95
_extract_filesMethod · 0.95
updateMethod · 0.80
requestMethod · 0.45

Tested by

no test coverage detected