BlogMediaEnhancer
- class essence_extractor.src.BlogMediaEnhancer(output_path='images')
Adds images to a blog post based on the content of the blog post.
- output_path
The path to the output directory.
- Type:
str
- add_images_to_blog(video_file_path, blog_content)
Adds the images to the blog content.
- Parameters:
video_file_path (str) – The path to the video file.
blog_content (str) – The blog content.
- Returns:
The blog content with the images added.
- Return type:
str
- add_url_timestamps_to_blog(youtube_url, blog_content)
Adds url with timestamp to the blog content in Markdown format.
- Parameters:
youtube_url (str) – The YouTube URL.
blog_content (str) – The blog content.
- Returns:
The blog content with the URL and the first timestamp of a range added in Markdown format.
- Return type:
str