Documentation ¶
Overview ¶
Package sendvid contains functions that can be used to accurately extract and validate Sendvid links.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delegate ¶
Delegate takes a string as an argument and returns a slice of valid Senvid links found within the response (if any) and an error
func ExtractThumbnail ¶
ExtractThumbnail takes the body response/contents of a Sendvid page (raw source/html (formatted as string)) as an argument. The extracted URL is unescaped to ensure validity and returned in string format.
func ExtractTitle ¶
ExtractTitle takes the body response/contents of a Sendvid page (raw source/html (formatted as string)) as an argument and returns the title as a string.
func ExtractViewCount ¶
ExtractViewCount takes the body response/contents of a Sendvid page (raw source/html (formatted as string)) as an argument and returns a string containing the view count, alongside an error. The error will be nil if everything is successful. If a failure occurs, -1 will be returned.
Types ¶
This section is empty.