diff options
author | Sergey M. <dstftw@gmail.com> | 2015-10-19 01:12:41 +0600 |
---|---|---|
committer | Sergey M. <dstftw@gmail.com> | 2015-10-19 01:12:41 +0600 |
commit | 2038ad6ee71c842420b83cb6c5ce3c6898e8e380 (patch) | |
tree | 0ff685ca99d98feb801a696372c32601493c160a /README.md | |
parent | d762f86e940ad656e8f7e7b93636292e4cf36de5 (diff) |
[README.md] Add uploader extraction sample in example extractor
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -710,12 +710,13 @@ If you want to add support for a new site, you can follow this quick list (assum webpage = self._download_webpage(url, video_id) # TODO more code goes here, for example ... - title = self._html_search_regex(r'<h1>(.*?)</h1>', webpage, 'title') + title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title') return { 'id': video_id, 'title': title, 'description': self._og_search_description(webpage), + 'uploader': self._search_regex(r'<div[^>]+id="uploader"[^>]*>([^<]+)<', webpage, 'uploader', fatal=False), # TODO more properties (see youtube_dl/extractor/common.py) } ``` |