[pinterest] support generic user URLs (#1205)
i.e. https://www.pinterest.com/USERNAME also renames 'BoardsExtractor' to 'UserExtractor'
This commit is contained in:
@@ -94,7 +94,7 @@ Patreon https://www.patreon.com/ Creators, Posts, User P
|
||||
Pawoo https://pawoo.net/ Images from Statuses, User Profiles `OAuth <https://github.com/mikf/gallery-dl#oauth>`__
|
||||
Photobucket https://photobucket.com/ Albums, individual Images
|
||||
Piczel https://piczel.tv/ Folders, individual Images, User Profiles
|
||||
Pinterest https://www.pinterest.com/ Boards, Pins, pin.it Links, related Pins, Sections Supported
|
||||
Pinterest https://www.pinterest.com/ |pinterest-C| Supported
|
||||
Pixiv https://www.pixiv.net/ |pixiv-C| Required
|
||||
Pixnet https://www.pixnet.net/ Folders, individual Images, Sets, User Profiles
|
||||
Plurk https://www.plurk.com/ Posts, Timelines
|
||||
@@ -160,6 +160,7 @@ Turboimagehost https://www.turboimagehost.com/ individual Images
|
||||
.. |instagram-C| replace:: Channels, Highlights, Posts, Saved Posts, Stories, Tag Searches, User Profiles
|
||||
.. |newgrounds-C| replace:: Art, Audio, Favorites, individual Images, Media Files, Movies, User Profiles
|
||||
.. |nijie-C| replace:: Doujin, Favorites, Illustrations, individual Images, User Profiles
|
||||
.. |pinterest-C| replace:: Pins, pin.it Links, related Pins, Sections, User Profiles
|
||||
.. |pixiv-C| replace:: Favorites, Follows, pixiv.me Links, Rankings, Search Results, User Profiles, individual Images
|
||||
.. |reddit-C| replace:: individual Images, Submissions, Subreddits, User Profiles
|
||||
.. |smugmug-C| replace:: Albums, individual Images, Images from Users and Folders
|
||||
|
||||
@@ -168,14 +168,17 @@ class PinterestBoardExtractor(PinterestExtractor):
|
||||
return self.api.board_pins(board["id"])
|
||||
|
||||
|
||||
class PinterestBoardsExtractor(PinterestExtractor):
|
||||
"""Extractor for a user's boards """
|
||||
subcategory = "boards"
|
||||
pattern = BASE_PATTERN + r"/(?!pin/)([^/?#&]+)/_saved/?$"
|
||||
test = ("https://www.pinterest.de/g1952849/_saved/", {
|
||||
"pattern": PinterestBoardExtractor.pattern,
|
||||
"count": ">= 2",
|
||||
})
|
||||
class PinterestUserExtractor(PinterestExtractor):
|
||||
"""Extractor for a user's boards"""
|
||||
subcategory = "user"
|
||||
pattern = BASE_PATTERN + r"/(?!pin/)([^/?#&]+)(?:/_saved)?/?$"
|
||||
test = (
|
||||
("https://www.pinterest.de/g1952849/", {
|
||||
"pattern": PinterestBoardExtractor.pattern,
|
||||
"count": ">= 2",
|
||||
}),
|
||||
("https://www.pinterest.de/g1952849/_saved/"),
|
||||
)
|
||||
|
||||
def __init__(self, match):
|
||||
PinterestExtractor.__init__(self, match)
|
||||
|
||||
Reference in New Issue
Block a user