Skip to content

Bulk asynchronous downloader for multiple file hosts

3.2 KB
Raw Blame
DOMAIN = "xvideos"
TEST_CASES = [
    {
        "url": "https://www.xvideos.com/video.ohfceph5e51/mia_khalifa_-_mia_khalifa_gets_her_pussy_pounded_in_doggy_before_taking_a_hot_cumshot_inside_her_mouth",
        "results": [
            {
                "url": "https://www.xvideos.com/video.ohfceph5e51/_",
                "filename": "MIA KHALIFA - Mia Khalifa Gets Her Pussy Pounded In Doggy Before Takin [ohfceph5e51][1080p].mp4",
                "original_filename": "ohfceph5e51.mp4",
                "referer": "https://www.xvideos.com/video.ohfceph5e51/mia_khalifa_-_mia_khalifa_gets_her_pussy_pounded_in_doggy_before_taking_a_hot_cumshot_inside_her_mouth",
                "album_id": None,
                "uploaded_at": 1751666400,
            }
        ],
    },
    {
        "url": "https://de.xvideos.com/video.ohfceph5e51/mia_khalifa_-_mia_khalifa_gets_her_pussy_pounded_in_doggy_before_taking_a_hot_cumshot_inside_her_mouth",
        "results": [
            {
                "url": "https://de.xvideos.com/video.ohfceph5e51/_",
                "filename": "MIA KHALIFA - Mia Khalifa Gets Her Pussy Pounded In Doggy Before Takin [ohfceph5e51][1080p].mp4",
            }
        ],
    },
    {
        "url": "https://www.xvideos.es/profiles/petite1810",
        "results": [
            {
                "url": "https://www.xvideos.es/video.uvfdtpm4c2a/_",
                "filename": "Vídeo de verificación [uvfdtpm4c2a][1920p].mp4",
                "original_filename": "uvfdtpm4c2a.mp4",
                "referer": "https://www.xvideos.es/video.uvfdtpm4c2a/video_de_verificacion",
                "album_id": None,
                "uploaded_at": 1689535483,
            }
        ],
    },
    {
        "url": "https://www.xvideos.es/video.oiubcfkc787/_mi_esposa_colombiana_queria_un_masaje_con_un_masajista_por_que_es_normal_",
        "description": "Title should always be the original title, ignore auto translated title",
        "results": [
            {
                "url": "https://www.xvideos.es/video.oiubcfkc787/_",
                "filename": "My Colombian Wife Wanted Massage by Male Masseur ! Why Is this Normal [oiubcfkc787][1080p].mp4",
                "referer": "https://www.xvideos.es/video.oiubcfkc787/_mi_esposa_colombiana_queria_un_masaje_con_un_masajista_por_que_es_normal_",
            }
        ],
    },
    {
        "url": "https://it.xvideos.com/valter_karotti#quickies/h/uceupff0647",
        "results": [
            {
                "url": "https://it.xvideos.com/video.uceupff0647/_",
                "filename": "Beauty Gina Gerson Takes Monster Cock in Anal - Anal Orgasm [uceupff0647][1080p].mp4",
                "referer": "https://it.xvideos.com/video.uceupff0647/_",
            }
        ],
    },
    {
        "url": "https://it.xvideos.com/channels/scout69_official/photos/10612349/german_scout_-_skinny_candee_licious",
        "results": [
            {
                "url": "re:https:\\/\\/profile-pics-cdn\\d+\\.xvideos-cdn\\.com",
                "album_id": "10612349",
                "referer": "https://it.xvideos.com/channels/scout69_official/photos/10612349/german_scout_-_skinny_candee_licious",
            }
        ],
        "count": 24,
    },
]