Пример #1
0
    def fetch(self, albuminfo):
        url = self.get_url(albuminfo)

        if url:
            extension = url.split(".")[-1].lower()
            bytedata = read(url)

            return {"extension": extension, "bytedata": bytedata}

        return None
Пример #2
0
 def _get_image(self, url):
     return {"extension": "jpg", "bytedata": read(url)}
Пример #3
0
 def _get(self, url):
     return loads(read(url).decode('utf-8'))