Documentation ¶
Index ¶
- func CreateValidVideoURL(inputURL string) string
- func ExtractTextWithPattern(htmlStr, pattern string) string
- func ExtractTitleString(htmlStr string) string
- func GetTitleFromHTML(html string) (string, error)
- func GetVideoSizeFromResponse(header *http.Header) (int64, error)
- type DownloaderCookieConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidVideoURL ¶
func ExtractTextWithPattern ¶
func ExtractTitleString ¶
func GetTitleFromHTML ¶
Extracting the string from the Title tag of the HTML element.
Types ¶
type DownloaderCookieConfig ¶
type DownloaderCookieConfig struct { TT_CHAIN_TOKEN string `json:"TT_CHAIN_TOKEN"` TT_CSRF_TOKEN string `json:"TT_CSRF_TOKEN"` TTWID string `json:"TTWID"` }
func (*DownloaderCookieConfig) InitDownloaderRequestConfigs ¶
func (dcc *DownloaderCookieConfig) InitDownloaderRequestConfigs() (*DownloaderCookieConfig, error)
Opening the config.json file and placing the cookie string into the struct.
Click to show internal directories.
Click to hide internal directories.