Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMult BinOpMult Num Num Num Assign NameStore BinOpMult Num Num Assign NameStore Num If CompareGt NameLoad NameLoad body Return Call AttributeLoad Str attr BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Return Call AttributeLoad Str attr BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Return Call AttributeLoad Str attr BinOpDiv NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad SubscriptLoad ListLoad Str Str Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Print Call AttributeLoad Str attr NameLoad Print Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Print Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Print Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Print Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If BoolOpAnd CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Str TryFinally body TryExcept body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str keyword NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Num finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Str Str Str NameLoad If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad While NameLoad body If CompareIsNot Call AttributeLoad NameLoad attr NameLoad body Break If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num If CompareEq Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Str Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Return Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Str Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIsNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Utils for videolectures-dl
 N/A re N/A sys N/A os N/A subprocess N/A time N/A requests _regex_match_get N/A N/A pattern text position N/A 1 N/A N/A 
    Return matched pattern or None
     N/A match N/A N/A re search pattern text N/A N/A match None N/A N/A N/A N/A match group position N/A N/A None N/A _convert_display_size N/A N/A size N/A N/A N/A 
    Convert filesize into human-readable size using unit suffixes
     N/A unit_gigabyte N/A N/A 1024 1024 1024.0 N/A unit_megabyte N/A 1024 1024.0 N/A unit_kilobyte 1024.0 N/A N/A size unit_gigabyte N/A N/A N/A N/A {:.2f} GB format N/A size unit_gigabyte N/A N/A N/A size unit_megabyte N/A N/A N/A N/A {:.2f} MB format N/A size unit_megabyte N/A N/A N/A size unit_kilobyte N/A N/A N/A N/A {:.1f} KB format N/A size unit_kilobyte N/A N/A N/A {0} bytes format size N/A ExtractionError N/A Exception N/A N/A 
    Exception for Extractor
     N/A N/A DownloadError N/A Exception N/A N/A 
    Exception for Downloader
     N/A N/A VideoDownloader N/A object N/A N/A 
    Download videos from videolectures.net
     N/A _CLEAR_STDOUT __init__ N/A N/A self opts N/A N/A N/A N/A self info_extract N/A VideoInfoExtractor N/A N/A self opts opts N/A _to_stderr N/A N/A self message N/A N/A N/A 
        Print a message to stderr
         N/A N/A N/A N/A sys stderr write message N/A _to_stdout N/A N/A self message skip_eol N/A False N/A N/A 
        Print a message to stdout
         N/A N/A N/A N/A sys stdout write N/A N/A {0}{1} format message N/A N/A N/A skip_eol N/A N/A N/A N/A sys stdout flush N/A show_video_detail N/A N/A self filename metadata N/A N/A N/A 
        Show video detail
         N/A N/A N/A File name: {0} format filename N/A N/A N/A Title: {0} format N/A metadata N/A meta_title N/A N/A N/A Date: {0} format N/A metadata N/A meta_date N/A N/A N/A Type: {0} format N/A metadata N/A meta_type N/A N/A N/A Part: {0} format N/A metadata N/A meta_part N/A error N/A N/A self err message N/A None N/A N/A 
        Raise error with a given message
         N/A N/A message None N/A N/A N/A N/A self _to_stderr message N/A N/A err message N/A run N/A N/A self filename url N/A N/A N/A 
        Run VideoDownloader
         N/A extractor N/A self info_extract N/A video_info N/A N/A extractor get_info url N/A N/A video_info N/A N/A N/A N/A self error ExtractionError ERROR: no video infomation was extracted. N/A meta_url N/A video_info N/A streaming_meta_path N/A meta_data N/A N/A extractor get_streaming_meta meta_url N/A N/A filename None N/A N/A N/A N/A N/A self opts title False N/A N/A name N/A video_info N/A default_filename N/A N/A name N/A meta_data N/A meta_title N/A filename N/A N/A {0}.{1} format name N/A meta_data N/A ext N/A N/A N/A self show_video_detail filename meta_data N/A N/A N/A self dump_video filename meta_data N/A N/A download complete N/A dump_video N/A N/A self filename meta_data N/A N/A N/A 
        Dump a video from videolectures.net
         N/A N/A N/A N/A os path exists filename N/A N/A N/A N/A N/A N/A self opts overwrite True N/A N/A N/A self opts resume False N/A N/A N/A N/A os remove filename N/A N/A N/A N/A N/A N/A self opts overwrite False N/A N/A N/A self opts resume False N/A N/A N/A N/A self error DownloadError N/A ERROR: file already exists.  remove it or use `overwrite` N/A N/A N/A N/A N/A stdout N/A open N/A N/A os path devnull w N/A N/A N/A subprocess call N/A rtmpdump -h stdout stdout stderr N/A subprocess STDOUT N/A N/A N/A N/A OSError IOError N/A N/A ERROR: rtmpdump could not be run. check the binary path. N/A N/A N/A sys exit 1 N/A N/A N/A N/A stdout close N/A basic_args N/A rtmpdump -q -r N/A meta_data N/A streamer -y N/A meta_data N/A source -a vod -o filename N/A N/A N/A N/A self opts resume True N/A N/A N/A N/A basic_args append -e N/A retval N/A N/A subprocess Popen basic_args N/A True N/A N/A N/A N/A N/A retval poll None N/A N/A N/A N/A N/A N/A N/A os path exists filename N/A N/A N/A previous_size N/A N/A N/A os path getsize filename N/A display_size N/A _convert_display_size previous_size N/A N/A N/A self _to_stdout N/A self _CLEAR_STDOUT skip_eol True N/A N/A N/A self _to_stdout N/A N/A 
[rtmpdump] {0} format display_size skip_eol True N/A N/A N/A time sleep 2.0 N/A N/A N/A N/A retval wait 0 N/A N/A current_size N/A N/A N/A os path getsize filename N/A display_size N/A _convert_display_size current_size N/A N/A N/A self _to_stdout N/A self _CLEAR_STDOUT skip_eol True N/A N/A N/A self _to_stdout N/A N/A 
[rtmpdump] {0} format display_size N/A True N/A N/A N/A N/A self error DownloadError N/A ERROR: download may be incomplete.  rtmpdump exited with code 1 or 2 N/A False N/A N/A VideoInfoExtractor N/A object N/A N/A 
    Extract video information from videolectures page
     N/A _VALIDATE_URL ^http://videolectures.net N/A _GOOGLE_VIDEO http://video\.google\.com/googleplayer\.swf\?docId N/A _META_TITLE_NAME <meta name="title" content="\s*([^"]*?)\s*" /> N/A _ORIG_FILENAME ([^\/]+)$ N/A _XHR_REQUEST_PATH xhr: .+\(\'(.+)\'\) __init__ N/A N/A self N/A N/A N/A N/A self body N/A _to_stderr N/A N/A self message N/A N/A N/A 
        Print a message to stderr
         N/A N/A N/A N/A sys stderr write message N/A error N/A N/A self err message N/A None N/A N/A 
        Raise error with a given message
         N/A N/A message None N/A N/A N/A N/A self _to_stderr message N/A N/A err message N/A get_info N/A N/A self url N/A N/A N/A 
        Get video information
         N/A N/A N/A N/A self valid_url url N/A N/A False N/A view_resp N/A N/A requests get url N/A body N/A N/A N/A N/A N/A view_resp text encode utf8 ignore decode utf8 N/A info N/A N/A self extract_info body N/A N/A N/A info update N/A N/A self extract_streaming_path body N/A info N/A get_streaming_meta N/A N/A self meta_url N/A N/A N/A 
        Request to meta_url and get metadata for streaming
         N/A meta_resp N/A N/A requests get meta_url N/A meta_body N/A N/A N/A N/A N/A meta_resp text encode utf8 ignore decode utf8 N/A meta N/A N/A self extract_streaming_source meta_body N/A N/A N/A meta update N/A N/A self extract_metadata meta_body N/A meta N/A extract_streaming_path N/A N/A self body N/A N/A N/A 
        Get streaming path for XHRHttpRequest from view page
         N/A xhr_path_match N/A N/A re search N/A self _XHR_REQUEST_PATH body N/A N/A xhr_path_match None N/A N/A xhr_path N/A N/A xhr_path_match group 1 N/A N/A xhr_path None N/A xhr_url N/A N/A http://videolectures.net{0} format xhr_path N/A N/A streaming_meta_path xhr_url N/A extract_metadata N/A N/A self meta_body N/A N/A N/A 
        Extract metadata
         N/A base_pattern <meta name="{0}" content="([^"]*)"\s*/> N/A meta_title N/A _regex_match_get N/A N/A base_pattern format title meta_body N/A meta_part N/A _regex_match_get N/A N/A base_pattern format part meta_body N/A meta_date N/A _regex_match_get N/A N/A base_pattern format date meta_body N/A meta_type N/A _regex_match_get N/A N/A base_pattern format type meta_body N/A N/A meta_title meta_part meta_date meta_type meta_title meta_part meta_date meta_type N/A extract_streaming_source N/A N/A self meta_body N/A N/A N/A 
        Extract streaming source
         N/A rtmp_source_match N/A N/A re search N/A N/A \s*<video.*\sext="([^"]+)" .*\sstreamer="(rtmp://[^"]+)" \ssrc="([^"]+)"/> meta_body N/A N/A rtmp_source_match None N/A N/A ext N/A N/A rtmp_source_match group 1 N/A streamer N/A N/A rtmp_source_match group 2 N/A rtmp_source N/A N/A rtmp_source_match group 3 N/A N/A ext None N/A streamer None N/A rtmp_source None N/A N/A ext streamer source ext streamer rtmp_source N/A extract_info N/A N/A self body N/A N/A N/A 
        Extract metadata url
         N/A xhr_url_match N/A N/A re search N/A self _XHR_REQUEST_PATH body N/A N/A xhr_url_match None N/A N/A xhr_url N/A N/A xhr_url_match group 1 N/A N/A xhr_url None N/A N/A N/A xhr_url None N/A N/A xhr_url endswith xml N/A N/A default_filename N/A N/A N/A xhr_url split / N/A 1 N/A N/A N/A N/A self error ExtractionError ERROR: can't get default_filename. N/A N/A default_filename xhr_url default_filename xhr_url N/A valid_url N/A N/A self url N/A N/A N/A 
        Check given url is valid url in videolectures.net or not.

        Parameters
        ----------
        url: string
            url given by commandline interface.
         N/A N/A N/A N/A re match N/A VideoInfoExtractor _VALIDATE_URL url None N/A N/A