mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-24 11:42:33 +01:00
112 lines
3.3 KiB
Python
112 lines
3.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
|
|
from gallery_dl.extractor import vsco
|
|
|
|
|
|
__tests__ = (
|
|
{
|
|
"#url" : "https://vsco.co/missuri",
|
|
"#category": ("", "vsco", "user"),
|
|
"#class" : vsco.VscoUserExtractor,
|
|
"#urls" : "https://vsco.co/missuri/gallery",
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/missuri",
|
|
"#category": ("", "vsco", "user"),
|
|
"#class" : vsco.VscoUserExtractor,
|
|
"#options" : {"include": "all"},
|
|
"#urls" : [
|
|
"https://vsco.co/missuri/avatar",
|
|
"https://vsco.co/missuri/gallery",
|
|
"https://vsco.co/missuri/spaces",
|
|
"https://vsco.co/missuri/collection",
|
|
],
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/missuri/gallery",
|
|
"#category": ("", "vsco", "gallery"),
|
|
"#class" : vsco.VscoGalleryExtractor,
|
|
"#pattern" : r"https://image(-aws.+)?\.vsco\.co/[0-9a-f/]+/[\w-]+\.\w+",
|
|
"#range" : "1-80",
|
|
"#count" : 80,
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/missuri/images/1",
|
|
"#category": ("", "vsco", "gallery"),
|
|
"#class" : vsco.VscoGalleryExtractor,
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/vsco/collection/1",
|
|
"#category": ("", "vsco", "collection"),
|
|
"#class" : vsco.VscoCollectionExtractor,
|
|
"#pattern" : r"https://image(-aws.+)?\.vsco\.co/[0-9a-f/]+/[\w\s-]+\.\w+",
|
|
"#range" : "1-80",
|
|
"#count" : 80,
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/spaces/6320a3e1e0338d1350b33fea",
|
|
"#category": ("", "vsco", "space"),
|
|
"#class" : vsco.VscoSpaceExtractor,
|
|
"#pattern" : r"https://image(-aws.+)?\.vsco\.co/[0-9a-f/]+/[\w\s-]+\.\w+",
|
|
"#count" : range(100, 150),
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/missuri/spaces",
|
|
"#category": ("", "vsco", "spaces"),
|
|
"#class" : vsco.VscoSpacesExtractor,
|
|
"#urls" : (
|
|
"https://vsco.co/spaces/62e4934e6920440801d19f05",
|
|
),
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/vsco/avatar",
|
|
"#category": ("", "vsco", "avatar"),
|
|
"#class" : vsco.VscoAvatarExtractor,
|
|
"#urls" : "https://image-aws-us-west-2.vsco.co/3c69ae/304128/652d9f3b39a6007526dda683/vscoprofile-avatar.jpg",
|
|
"#sha1_content" : "57cd648759e34a6daefc5c79542ddb4595b9b677",
|
|
|
|
"id": "652d9f3b39a6007526dda683",
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/erenyildiz/media/5d34b93ef632433030707ce2",
|
|
"#category": ("", "vsco", "image"),
|
|
"#class" : vsco.VscoImageExtractor,
|
|
"#sha1_url" : "a45f9712325b42742324b330c348b72477996031",
|
|
"#sha1_content": "1394d070828d82078035f19a92f404557b56b83f",
|
|
|
|
"id" : "5d34b93ef632433030707ce2",
|
|
"user" : "erenyildiz",
|
|
"grid" : "erenyildiz",
|
|
"meta" : dict,
|
|
"tags" : list,
|
|
"date" : "dt:2019-07-21 19:12:11",
|
|
"video" : False,
|
|
"width" : 1537,
|
|
"height" : 1537,
|
|
"description": r"re:Ni seviyorum. #vsco #vscox #vscochallenges",
|
|
},
|
|
|
|
{
|
|
"#url" : "https://vsco.co/jimenalazof/media/5b4feec558f6c45c18c040fd",
|
|
"#category": ("", "vsco", "image"),
|
|
"#class" : vsco.VscoImageExtractor,
|
|
"#sha1_url" : "08e7eef3301756ce81206c0b47c1e9373756a74a",
|
|
"#sha1_content": "e739f058d726ee42c51c180a505747972a7dfa47",
|
|
|
|
"video": True,
|
|
},
|
|
|
|
)
|