Liking cljdoc? Tell your friends :D

qy-upup.asmr-video-generator.core


extract-keywords-from-urlclj

(extract-keywords-from-url url)

Extracts keywords from a Supermaker AI ASMR video generator URL.

Takes a URL string and attempts to extract the 'keywords' query parameter. Returns the keywords as a string, or nil if the URL is invalid or keywords are not found. Example: (extract-keywords-from-url "https://supermaker.ai/video/asmr-video-generator/?keywords=gentle+rain") ;=> "gentle+rain"

(extract-keywords-from-url "https://supermaker.ai/video/asmr-video-generator/") ;=> nil

Extracts keywords from a Supermaker AI ASMR video generator URL.

Takes a URL string and attempts to extract the 'keywords' query parameter.
Returns the keywords as a string, or nil if the URL is invalid or keywords are not found.
Example:
(extract-keywords-from-url "https://supermaker.ai/video/asmr-video-generator/?keywords=gentle+rain")
;=> "gentle+rain"

(extract-keywords-from-url "https://supermaker.ai/video/asmr-video-generator/")
;=> nil
raw docstring

generate-supermaker-urlclj

(generate-supermaker-url keywords)

Generates a Supermaker AI ASMR video generator URL based on provided keywords.

Takes a string of keywords (separated by spaces) and constructs the URL. The URL is hardcoded to point to the ASMR video generator page on Supermaker AI. Example: (generate-supermaker-url "ocean waves crashing") ;=> "https://supermaker.ai/video/asmr-video-generator/?keywords=ocean+waves+crashing"

Generates a Supermaker AI ASMR video generator URL based on provided keywords.

Takes a string of keywords (separated by spaces) and constructs the URL.
The URL is hardcoded to point to the ASMR video generator page on Supermaker AI.
Example:
(generate-supermaker-url "ocean waves crashing")
;=> "https://supermaker.ai/video/asmr-video-generator/?keywords=ocean+waves+crashing"
raw docstring

process-metadataclj

(process-metadata metadata)

Processes mock ASMR video metadata (title, description, duration).

Takes a map containing video metadata and performs basic cleaning.

  • Trims whitespace from title and description.
  • Converts duration to integer (in seconds). Returns a cleaned map. Example: (process-metadata {:title " Ocean Sounds " :description " Relaxing ocean ambience. " :duration " 300 "}) ;=> {:title "Ocean Sounds", :description "Relaxing ocean ambience.", :duration 300}
Processes mock ASMR video metadata (title, description, duration).

Takes a map containing video metadata and performs basic cleaning.
- Trims whitespace from title and description.
- Converts duration to integer (in seconds).
Returns a cleaned map.
Example:
(process-metadata {:title "  Ocean Sounds  " :description " Relaxing ocean ambience.  " :duration " 300 "})
;=> {:title "Ocean Sounds", :description "Relaxing ocean ambience.", :duration 300}
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close