mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-12 21:36:19 +00:00
Merge d2930508f81965dfc4a44dc13646ec85a3965052 into c5098961b04ce83f4615f2a846c84f803b072639
This commit is contained in:
commit
a3d27e077c
@ -530,6 +530,7 @@ from .indavideo import IndavideoEmbedIE
|
|||||||
from .infoq import InfoQIE
|
from .infoq import InfoQIE
|
||||||
from .instagram import (
|
from .instagram import (
|
||||||
InstagramIE,
|
InstagramIE,
|
||||||
|
InstagramSavedIE,
|
||||||
InstagramUserIE,
|
InstagramUserIE,
|
||||||
InstagramTagIE,
|
InstagramTagIE,
|
||||||
)
|
)
|
||||||
|
@ -405,6 +405,36 @@ class InstagramPlaylistIE(InfoExtractor):
|
|||||||
self._extract_graphql(data, url), user_or_tag, user_or_tag)
|
self._extract_graphql(data, url), user_or_tag, user_or_tag)
|
||||||
|
|
||||||
|
|
||||||
|
class InstagramSavedIE(InstagramPlaylistIE):
|
||||||
|
_VALID_URL = r'https?://(?:www\.)?instagram\.com/(?P<id>[^/]{2,})/saved/?(?:$|[?#])'
|
||||||
|
IE_DESC = 'Instagram saved media'
|
||||||
|
IE_NAME = 'instagram:saved'
|
||||||
|
_TEST = {
|
||||||
|
'url': 'https://www.instagram.com/tatsh2dx/saved/',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'tatsh2dx',
|
||||||
|
'title': 'tatsh2dx',
|
||||||
|
},
|
||||||
|
'playlist_count': 5,
|
||||||
|
'params': {
|
||||||
|
'skip_download': True,
|
||||||
|
'playlistend': 5,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_QUERY_HASH = '8c86fed24fa03a8a2eea2a70a80c7b6b'
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _parse_timeline_from(data):
|
||||||
|
return data['data']['user']['edge_saved_media']
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _query_vars_for(data):
|
||||||
|
return {
|
||||||
|
'id': data['entry_data']['ProfilePage'][0]['graphql']['user']['id']
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class InstagramUserIE(InstagramPlaylistIE):
|
class InstagramUserIE(InstagramPlaylistIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?instagram\.com/(?P<id>[^/]{2,})/?(?:$|[?#])'
|
_VALID_URL = r'https?://(?:www\.)?instagram\.com/(?P<id>[^/]{2,})/?(?:$|[?#])'
|
||||||
IE_DESC = 'Instagram user profile'
|
IE_DESC = 'Instagram user profile'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user