Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FujiwaraChoki/MoneyPrinterV2
/ functions
Functions
141 in github.com/FujiwaraChoki/MoneyPrinterV2
⨍
Functions
141
◇
Types & classes
12
↳
Endpoints
7
↓ 56 callers
Function
info
Prints an info message. Args: message (str): The info message show_emoji (bool): Whether to show the emoji Returns:
src/status.py:31
↓ 34 callers
Function
warning
Prints a warning message. Args: message (str): The warning message show_emoji (bool): Whether to show the emoji Returns
src/status.py:45
↓ 24 callers
Function
get_verbose
Gets the verbose flag from the config file. Returns: verbose (bool): The verbose flag
src/config.py:42
↓ 24 callers
Function
question
Prints a question message and returns the user's input. Args: message (str): The question message show_emoji (bool): Whether
src/status.py:59
↓ 24 callers
Function
success
Prints a success message. Args: message (str): The success message show_emoji (bool): Whether to show the emoji Returns
src/status.py:17
↓ 23 callers
Function
error
Prints an error message. Args: message (str): The error message show_emoji (bool): Whether to show the emoji Returns:
src/status.py:3
↓ 8 callers
Function
get_accounts
Gets the accounts from the cache. Args: provider (str): The provider to get the accounts for Returns: account (List[dic
src/cache.py:63
↓ 8 callers
Function
ok
(msg: str)
scripts/preflight_local.py:14
↓ 6 callers
Function
get_twitter_cache_path
Gets the path to the Twitter cache file. Returns: path (str): The path to the Twitter cache folder
src/cache.py:25
↓ 6 callers
Function
warn
(msg: str)
scripts/preflight_local.py:18
↓ 5 callers
Method
generate_response
Generates an LLM Response based on a prompt and the user-provided model. Args: prompt (str): The prompt to use in the te
src/classes/YouTube.py:122
↓ 5 callers
Function
get_youtube_cache_path
Gets the path to the YouTube cache file. Returns: path (str): The path to the YouTube cache folder
src/cache.py:34
↓ 5 callers
Function
maybe_crosspost_youtube_short
Cross-post a successfully uploaded YouTube Short via Post Bridge. Args: video_path (str): Path to generated video file. titl
src/post_bridge_integration.py:126
↓ 4 callers
Function
fail
(msg: str)
scripts/preflight_local.py:22
↓ 4 callers
Function
get_afm_cache_path
Gets the path to the Affiliate Marketing cache file. Returns: path (str): The path to the AFM cache folder
src/cache.py:16
↓ 4 callers
Function
get_cache_path
Gets the path to the cache file. Returns: path (str): The path to the cache folder
src/cache.py:7
↓ 4 callers
Method
json
(self)
tests/test_post_bridge_client.py:23
↓ 4 callers
Method
post
Starts the Twitter Bot. Args: text (str): The text to post Returns: None
src/classes/Twitter.py:73
↓ 4 callers
Method
write_config
(self, directory: str, payload: dict)
tests/test_config.py:19
↓ 3 callers
Method
_request
( self, method: str, url: str, *, headers: Optional[dict] = None,
src/classes/PostBridge.py:200
↓ 3 callers
Method
_request_json
(self, method: str, url: str, **kwargs)
src/classes/PostBridge.py:184
↓ 3 callers
Function
generate_text
Generates text using the local Ollama server. Args: prompt (str): User prompt model_name (str): Optional model name override
src/llm_provider.py:41
↓ 3 callers
Function
get_headless
Gets the headless flag from the config file. Returns: headless (bool): The headless flag
src/config.py:62
↓ 3 callers
Function
get_provider_cache_path
Gets the cache path for a supported account provider. Args: provider (str): The provider name ("twitter" or "youtube") Returns:
src/cache.py:43
↓ 3 callers
Function
resolve_social_account_ids
Resolve the social account IDs to use for a cross-post. Args: client (PostBridge): Post Bridge client instance. configured_a
src/post_bridge_integration.py:14
↓ 3 callers
Function
select_model
Sets the model to use for all subsequent generate_text calls. Args: model (str): An Ollama model name (must be already pulled).
src/llm_provider.py:23
↓ 2 callers
Function
_client
()
src/llm_provider.py:8
↓ 2 callers
Method
_find_scraper_dir
(self)
src/classes/Outreach.py:40
↓ 2 callers
Method
_format_srt_timestamp
Formats a timestamp in seconds to SRT format. Args: seconds (float): Seconds Returns: ts (str): HH:
src/classes/YouTube.py:488
↓ 2 callers
Function
add_account
Adds an account to the cache. Args: provider (str): The provider to add the account to ("twitter" or "youtube") account (dic
src/cache.py:94
↓ 2 callers
Function
check_url
(url: str, timeout: int = 3)
scripts/preflight_local.py:26
↓ 2 callers
Method
create_post
Create a post on one or more social accounts. Args: caption (str): Post caption. social_account_ids (Sequenc
src/classes/PostBridge.py:136
↓ 2 callers
Method
generate_pitch
This method will be used to generate a pitch for the product. Returns: pitch (str): The pitch for the product.
src/classes/AFM.py:131
↓ 2 callers
Method
generate_subtitles_local_whisper
Generates subtitles using local Whisper (faster-whisper). Args: audio_path (str): Audio file path Returns:
src/classes/YouTube.py:505
↓ 2 callers
Method
generate_video
Generates a YouTube Short based on the provided niche and language. Args: tts_instance (TTS): Instance of TTS Class.
src/classes/YouTube.py:649
↓ 2 callers
Function
get_active_model
Returns the currently selected model, or None if none has been selected.
src/llm_provider.py:34
↓ 2 callers
Method
get_posts
Gets the posts from the cache. Returns: posts (List[dict]): The posts
src/classes/Twitter.py:143
↓ 2 callers
Function
get_products
Gets the products from the cache. Returns: products (List[dict]): The products
src/cache.py:144
↓ 2 callers
Method
get_videos
Gets the uploaded videos from the YouTube Channel. Returns: videos (List[dict]): The uploaded videos.
src/classes/YouTube.py:855
↓ 2 callers
Method
list_social_accounts
Fetch connected social accounts with pagination support. Args: platforms (Sequence[str] | None): Optional platform filte
src/classes/PostBridge.py:43
↓ 2 callers
Method
quit
This method will be used to quit the browser.
src/classes/AFM.py:171
↓ 2 callers
Function
rem_temp_files
Removes temporary files in the `.mp` directory. Returns: None
src/utils.py:48
↓ 2 callers
Function
remove_account
Removes an account from the cache. Args: provider (str): The provider to remove the account from ("twitter" or "youtube") ac
src/cache.py:119
↓ 2 callers
Method
share_pitch
This method will be used to share the pitch on the specified platform. Args: where (str): The platform where the pitch w
src/classes/AFM.py:152
↓ 2 callers
Method
upload_media
Upload a local media file to Post Bridge and return its media ID. Args: file_path (str): Absolute path to a local media
src/classes/PostBridge.py:88
↓ 2 callers
Method
upload_video
Uploads the video to YouTube. Returns: success (bool): Whether the upload was successful or not.
src/classes/YouTube.py:703
↓ 1 callers
Method
__init__
( self, api_key: str, session: Optional[requests.Session] = None, max_retries:
src/classes/PostBridge.py:30
↓ 1 callers
Method
_build_http_error
(self, response: requests.Response)
src/classes/PostBridge.py:259
↓ 1 callers
Method
_guess_mime_type
(self, file_path: str)
src/classes/PostBridge.py:178
↓ 1 callers
Method
_persist_image
Writes generated image bytes to a PNG file in .mp. Args: image_bytes (bytes): Image payload provider_label (
src/classes/YouTube.py:297
↓ 1 callers
Method
add_post
Adds a post to the cache. Args: post (dict): The post to add Returns: None
src/classes/Twitter.py:172
↓ 1 callers
Function
add_product
Adds a product to the cache. Args: product (dict): The product to add Returns: None
src/cache.py:164
↓ 1 callers
Method
add_video
Adds a video to the cache. Args: video (dict): The video to add Returns: None
src/classes/YouTube.py:416
↓ 1 callers
Function
assert_folder_structure
Make sure that the nessecary folder structure is present. Returns: None
src/config.py:10
↓ 1 callers
Function
build_platform_configurations
Build platform-specific post overrides for Post Bridge. Args: title (str): Video title generated by YouTube flow. Returns:
src/post_bridge_integration.py:105
↓ 1 callers
Method
build_scraper
Build the scraper. Returns: None
src/classes/Outreach.py:85
↓ 1 callers
Function
build_url
Builds the URL to the YouTube video. Args: youtube_video_id (str): The YouTube video ID. Returns: url (str): The URL to
src/utils.py:35
↓ 1 callers
Function
choose_random_song
Chooses a random song from the songs/ directory. Returns: str: The path to the chosen song.
src/utils.py:137
↓ 1 callers
Method
combine
Combines everything into the final video. Returns: path (str): The path to the generated MP4 File.
src/classes/YouTube.py:552
↓ 1 callers
Function
equalize_subtitles
Equalizes the subtitles in a SRT file. Args: srt_path (str): The path to the SRT file max_chars (int): The maximum amount of
src/config.py:286
↓ 1 callers
Function
fetch_songs
Downloads songs into songs/ directory to use with geneated videos. Returns: None
src/utils.py:65
↓ 1 callers
Method
generate_image
Generates an AI Image based on the given prompt using Nano Banana 2. Args: prompt (str): Reference for image generation
src/classes/YouTube.py:380
↓ 1 callers
Method
generate_image_nanobanana2
Generates an AI Image using Nano Banana 2 API (Gemini image API). Args: prompt (str): Prompt for image generation
src/classes/YouTube.py:319
↓ 1 callers
Method
generate_metadata
Generates Video metadata for the to-be-uploaded YouTube Short (Title, Description). Returns: metadata (dict): The genera
src/classes/YouTube.py:200
↓ 1 callers
Method
generate_post
Generates a post for the Twitter account based on the topic. Returns: post (str): The post
src/classes/Twitter.py:198
↓ 1 callers
Method
generate_prompts
Generates AI Image Prompts based on the provided Video Script. Returns: image_prompts (List[str]): Generated List of ima
src/classes/YouTube.py:224
↓ 1 callers
Method
generate_response
This method will be used to generate the response for the user. Args: prompt (str): The prompt for the user. Re
src/classes/AFM.py:119
↓ 1 callers
Method
generate_script
Generate a script for a video, depending on the subject of the video, the number of paragraphs, and the AI model. Returns:
src/classes/YouTube.py:152
↓ 1 callers
Method
generate_script_to_speech
Converts the generated script into Speech using KittenTTS and returns the path to the wav file. Args: tts_instance (tts)
src/classes/YouTube.py:392
↓ 1 callers
Method
generate_subtitles
Generates subtitles for the audio using the configured STT provider. Args: audio_path (str): The path to the audio file.
src/classes/YouTube.py:444
↓ 1 callers
Method
generate_subtitles_assemblyai
Generates subtitles using AssemblyAI. Args: audio_path (str): Audio file path Returns: path (str):
src/classes/YouTube.py:465
↓ 1 callers
Method
generate_topic
Generates a topic based on the YouTube Channel niche. Returns: topic (str): The generated topic.
src/classes/YouTube.py:134
↓ 1 callers
Function
get_assemblyai_api_key
Gets the AssemblyAI API key. Returns: key (str): The AssemblyAI API key
src/config.py:236
↓ 1 callers
Method
get_channel_id
Gets the Channel ID of the YouTube Account. Returns: channel_id (str): The Channel ID.
src/classes/YouTube.py:688
↓ 1 callers
Function
get_email_credentials
Gets the email credentials from the config file. Returns: credentials (dict): The email credentials
src/config.py:32
↓ 1 callers
Function
get_first_time_running
Checks if the program is running for the first time by checking if .mp folder exists. Returns: exists (bool): True if the program is
src/config.py:23
↓ 1 callers
Function
get_font
Gets the font from the config file. Returns: font (str): The font
src/config.py:299
↓ 1 callers
Function
get_fonts_dir
Gets the fonts directory. Returns: dir (str): The fonts directory
src/config.py:309
↓ 1 callers
Function
get_google_maps_scraper_niche
Gets the niche for the Google Maps scraper. Returns: niche (str): The niche
src/config.py:186
↓ 1 callers
Function
get_google_maps_scraper_zip_url
Gets the URL to the zip file containing the Google Maps scraper. Returns: url (str): The URL to the zip file
src/config.py:176
↓ 1 callers
Function
get_imagemagick_path
Gets the path to ImageMagick. Returns: path (str): The path to ImageMagick
src/config.py:318
↓ 1 callers
Function
get_is_for_kids
Gets the is for kids flag from the config file. Returns: is_for_kids (bool): The is for kids flag
src/config.py:166
↓ 1 callers
Method
get_items_from_file
Read and return items from a file. Args: file_name (str): The name of the file to read from. Returns:
src/classes/Outreach.py:147
↓ 1 callers
Function
get_nanobanana2_api_base_url
Gets the Nano Banana 2 (Gemini image) API base URL. Returns: url (str): API base URL
src/config.py:102
↓ 1 callers
Function
get_nanobanana2_api_key
Gets the Nano Banana 2 API key. Returns: key (str): API key
src/config.py:115
↓ 1 callers
Function
get_nanobanana2_aspect_ratio
Gets the aspect ratio for Nano Banana 2 image generation. Returns: ratio (str): Aspect ratio
src/config.py:136
↓ 1 callers
Function
get_nanobanana2_model
Gets the Nano Banana 2 model name. Returns: model (str): Model name
src/config.py:126
↓ 1 callers
Function
get_ollama_base_url
Gets the Ollama base URL. Returns: url (str): The Ollama base URL
src/config.py:72
↓ 1 callers
Function
get_ollama_model
Gets the Ollama model name from the config file. Returns: model (str): The Ollama model name, or empty string if not set.
src/config.py:82
↓ 1 callers
Function
get_outreach_message_body_file
Gets the outreach message body file. Returns: file (str): The outreach message body file
src/config.py:216
↓ 1 callers
Function
get_outreach_message_subject
Gets the outreach message subject. Returns: subject (str): The outreach message subject
src/config.py:206
↓ 1 callers
Function
get_post_bridge_config
Gets the Post Bridge configuration with safe defaults. Returns: config (dict): Sanitized Post Bridge configuration
src/config.py:343
↓ 1 callers
Function
get_results_cache_path
Gets the path to the results cache file. Returns: path (str): The path to the results cache folder
src/cache.py:186
↓ 1 callers
Function
get_scraper_timeout
Gets the timeout for the scraper. Returns: timeout (int): The timeout
src/config.py:196
↓ 1 callers
Function
get_script_sentence_length
Gets the forced script's sentence length. In case there is no sentence length in config, returns 4 when none Returns: length (in
src/config.py:328
↓ 1 callers
Function
get_stt_provider
Gets the configured STT provider. Returns: provider (str): The STT provider
src/config.py:246
↓ 1 callers
Function
get_threads
Gets the amount of threads to use for example when writing to a file with MoviePy. Returns: threads (int): Amount of threads
src/config.py:146
↓ 1 callers
Function
get_tts_voice
Gets the TTS voice from the config file. Returns: voice (str): The TTS voice
src/config.py:226
↓ 1 callers
Function
get_twitter_language
Gets the Twitter language from the config file. Returns: language (str): The Twitter language
src/config.py:92
↓ 1 callers
Function
get_whisper_compute_type
Gets the compute type for Whisper inference. Returns: compute_type (str): Whisper compute type
src/config.py:276
next →
1–100 of 141, ranked by callers