]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/hentaistigma.py
   1 from __future__ 
import unicode_literals
 
   3 from .common 
import InfoExtractor
 
   6 class HentaiStigmaIE(InfoExtractor
): 
   7     _VALID_URL 
= r
'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)' 
   9         'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/', 
  10         'md5': '4e3d07422a68a4cc363d8f57c8bf0d23', 
  12             'id': 'inyouchuu-etsu-bonus', 
  14             'title': 'Inyouchuu Etsu Bonus', 
  19     def _real_extract(self
, url
): 
  20         video_id 
= self
._match
_id
(url
) 
  22         webpage 
= self
._download
_webpage
(url
, video_id
) 
  24         title 
= self
._html
_search
_regex
( 
  25             r
'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>', 
  27         wrap_url 
= self
._html
_search
_regex
( 
  28             r
'<iframe[^>]+src="([^"]+mp4)"', webpage
, 'wrapper url') 
  29         wrap_webpage 
= self
._download
_webpage
(wrap_url
, video_id
) 
  31         video_url 
= self
._html
_search
_regex
( 
  32             r
'file\s*:\s*"([^"]+)"', wrap_webpage
, 'video url')