Skip to content

Bulk asynchronous downloader for multiple file hosts

1.8 KB
Raw Blame
DOMAIN = "pixhost"
TEST_CASES = [
    {
        "url": "https://pixhost.cc/show/491/538303562_035.jpg",
        "results": [
            {
                "url": "https://img100.pixhost.cc/images/491/538303562_035.jpg",
                "filename": "538303562_035.jpg",
                "referer": "https://pixhost.cc/show/491/538303562_035.jpg",
                "album_id": None,
            }
        ],
    },
    {
        "url": "https://t100.pixhost.cc/thumbs/491/538303428_001.jpg",
        "results": [
            {
                "url": "https://img100.pixhost.cc/images/491/538303428_001.jpg",
                "filename": "538303428_001.jpg",
                "referer": "https://pixhost.cc/show/491/538303428_001.jpg",
                "album_id": None,
            }
        ],
    },
    {
        "url": "https://pixhost.cc/gallery/pgv5s",
        "results": [
            {
                "url": "https://img31.pixhost.cc/images/183/107062500_instasave.jpg",
                "filename": "107062500_instasave.jpg",
                "referer": "https://pixhost.cc/gallery/pgv5s",
                "album_id": "pgv5s",
                "download_path": "re:Untitled Gallery pgv5s",
            }
        ],
        "count": 7,
    },
    {
        "url": "https://img0.pixhost.cc/images/647/527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",
        "results": [
            {
                "url": "https://img0.pixhost.cc/images/647/527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",
                "filename": "527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",
                "referer": "https://img0.pixhost.cc/images/647/527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",
            }
        ],
    },
]