Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
WRITE QUESTION HERE
I want to use the youtuebe-dl in my python project,I seen the description ,but the author just demo simple. And I Find these source code,there's a lot methods. Could anyone do a demo about methods
Methods defined here:
|
| enter(self)
|
| exit(self, *args)
|
| init(self, params=None, auto_init=True)
| Create a FileDownloader object with the given options.
|
| add_default_extra_info(self, ie_result, ie, url)
|
| add_default_info_extractors(self)
| Add the InfoExtractors returned by gen_extractors to the end of the list
|
| add_info_extractor(self, ie)
| Add an InfoExtractor object to the end of the list.
|
| add_post_processor(self, pp)
| Add a PostProcessor object to the end of the chain.
|
| add_progress_hook(self, ph)
| Add the progress hook (currently only for the file downloader)
|
| build_format_selector(self, format_spec)
|
| download(self, url_list)
| Download a given list of URLs.
|
| download_with_info_file(self, info_filename)
|
| encode(self, s)
|
| extract_info(self, url, download=True, ie_key=None, extra_info={}, process=True, force_generic_extractor=False)
| Returns a list with a dictionary for each video we find.
| If 'download', also downloads the videos.
| extra_info is a dict containing the extra values to add to each result
|
| get_encoding(self)
|
| get_info_extractor(self, ie_key)
| Get an instance of an IE with name ie_key, it will try to get one from
| the _ies list, if there's no instance it will create a new one and add
| it to the extractor list.
|
| in_download_archive(self, info_dict)
|
| list_formats(self, info_dict)
|
| list_subtitles(self, video_id, subtitles, name='subtitles')
|
| list_thumbnails(self, info_dict)
|
| post_process(self, filename, ie_info)
| Run all the postprocessors on the given file.
|
| prepare_filename(self, info_dict)
| Generate the output filename.
|
| print_debug_header(self)
|
| process_ie_result(self, ie_result, download=True, extra_info={})
| Take the result of the ie(may be modified) and resolve all unresolved
| references (URLs, playlist items).
|
| It will also download the videos if 'download'.
| Returns the resolved ie_result.
|
| process_info(self, info_dict)
| Process a single resolved IE result.
|
| process_subtitles(self, video_id, normal_subtitles, automatic_captions)
| Select the requested subtitles and their format
|
| process_video_result(self, info_dict, download=True)
|
| record_download_archive(self, info_dict)
|
| report_error(self, message, tb=None)
| Do the same as trouble, but prefixes the message with 'ERROR:', colored
| in red if stderr is a tty file.
|
| report_file_already_downloaded(self, file_name)
| Report file has already been fully downloaded.
|
| report_warning(self, message)
| Print the message to stderr, it will be prefixed with 'WARNING:'
| If stderr is a tty file the 'WARNING:' will be colored
|
| restore_console_title(self)
|
| save_console_title(self)
|
| to_console_title(self, message)
|
| to_screen(self, message, skip_eol=False)
| Print message to stdout if not in quiet mode.
|
| to_stderr(self, message)
| Print message to stderr.
|
| to_stdout(self, message, skip_eol=False, check_quiet=False)
| Print message to stdout if not in quiet mode.
|
| trouble(self, message=None, tb=None)
| Determine action to take when a download problem appears.
|
| Depending on if the downloader has been configured to ignore
| download errors or not, this method may throw an exception or
| not when errors are found, after printing the message.
|
| tb, if given, is additional traceback information.
|
| urlopen(self, req)
| Start an HTTP download
|
| warn_if_short_id(self, argv)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| add_extra_info(info_dict, extra_info)
| Set the keys from extra_info in info dict if they are missing
|
| filter_requested_info(info_dict)
|
| format_resolution(format, default='unknown')
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| dict
| dictionary for instance variables (if defined)
|
| weakref
| list of weak references to the object (if defined)