mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 06:14:05 -07:00
Merge d2930508f8
into c5098961b0
This commit is contained in:
commit
a3d27e077c
2 changed files with 31 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue