1 from .common
import InfoExtractor
2 from ..compat
import compat_urllib_parse_unquote
5 class EHowIE(InfoExtractor
):
7 _VALID_URL
= r
'https?://(?:www\.)?ehow\.com/[^/_?]*_(?P<id>[0-9]+)'
9 'url': 'http://www.ehow.com/video_12245069_hardwood-flooring-basics.html',
10 'md5': '9809b4e3f115ae2088440bcb4efbf371',
14 'title': 'Hardwood Flooring Basics',
15 '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...',
16 'uploader': 'Erick Nathan',
20 def _real_extract(self
, url
):
21 video_id
= self
._match
_id
(url
)
22 webpage
= self
._download
_webpage
(url
, video_id
)
23 video_url
= self
._search
_regex
(
24 r
'(?:file|source)=(http[^\'"&]*)', webpage, 'video URL')
25 final_url = compat_urllib_parse_unquote(video_url)
26 uploader = self._html_search_meta('uploader', webpage)
27 title = self._og_search_title(webpage).replace(' | eHow', '')
33 'thumbnail': self._og_search_thumbnail(webpage),
34 'description': self._og_search_description(webpage),