Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Who could demo the youtube-dl's Methods of use? #23554

Closed
Litton-Lei opened this issue Dec 29, 2019 · 0 comments
Closed

Who could demo the youtube-dl's Methods of use? #23554

Litton-Lei opened this issue Dec 29, 2019 · 0 comments
Labels

Comments

@Litton-Lei
Copy link

@Litton-Lei Litton-Lei commented Dec 29, 2019

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)

@Litton-Lei Litton-Lei added the question label Dec 29, 2019
@dstftw dstftw closed this Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.