]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/ehow.py
f8f49a013503cc853c2bf79e345b360af3db7fee
1 from __future__
import unicode_literals
8 from . common
import InfoExtractor
11 class EHowIE ( InfoExtractor
):
13 _VALID_URL
= r
'https?://(?:www\.)?ehow\.com/[^/_?]*_(?P<id>[0-9]+)'
15 'url' : 'http://www.ehow.com/video_12245069_hardwood-flooring-basics.html' ,
16 'md5' : '9809b4e3f115ae2088440bcb4efbf371' ,
20 'title' : 'Hardwood Flooring Basics' ,
21 'description' : 'Hardwood flooring may be time consuming, but its ultimately a pretty straightforward concept. Learn about hardwood flooring basics with help from a hardware flooring business owner in this free video...' ,
22 'uploader' : 'Erick Nathan' ,
26 def _real_extract ( self
, url
):
27 mobj
= re
. match ( self
._ VALID
_U RL
, url
)
28 video_id
= mobj
. group ( 'id' )
29 webpage
= self
._ download
_ webpage
( url
, video_id
)
30 video_url
= self
._ search
_ regex
( r
'(?:file|source)=(http[^\' "&]*)',
32 final_url = compat_urllib_parse.unquote(video_url)
33 uploader = self._html_search_meta('uploader', webpage)
34 title = self._og_search_title(webpage).replace(' | eHow', '')
40 'thumbnail': self._og_search_thumbnail(webpage),
41 'description': self._og_search_description(webpage),