Documentation
¶
Index ¶
- func InitDownloaderClient() *http.Client
- type Downloader
- func (d *Downloader) DownloadVideo(URL string, FileName string, video_number int, wg *sync.WaitGroup) error
- func (d *Downloader) FetchJSONAndSendToChannel(URL string, keyword string, offset int, wg *sync.WaitGroup, ...) error
- func (d *Downloader) FetchVideoTitleAndUrl(URL string, wg *sync.WaitGroup) (string, string, error)
- func (d *Downloader) FetchVideoURLToBinary(URL string, wg *sync.WaitGroup) ([]byte, int64, error)
- func (d *Downloader) FetchVideoUrl(URL string, wg *sync.WaitGroup) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDownloaderClient ¶
Types ¶
type Downloader ¶
type Downloader struct {
// Request
InitRequest *http.Request
DownloadRequest *http.Request
// Response
InitResponse *http.Response
DownloadResponse *http.Response
// Config
TokenConfig *extractor.DownloaderCookieConfig
// contains filtered or unexported fields
}
func InitDownloader ¶
func InitDownloader() *Downloader
InitDownloader initializes a new Downloader instance with necessary settings.
func (*Downloader) DownloadVideo ¶
func (d *Downloader) DownloadVideo(URL string, FileName string, video_number int, wg *sync.WaitGroup) error
Initiating the download process.
func (*Downloader) FetchJSONAndSendToChannel ¶
func (d *Downloader) FetchJSONAndSendToChannel(URL string, keyword string, offset int, wg *sync.WaitGroup, video_search_chan chan searchvideo.SearchVideoChanType) error
func (*Downloader) FetchVideoTitleAndUrl ¶
func (*Downloader) FetchVideoURLToBinary ¶
func (*Downloader) FetchVideoUrl ¶
Click to show internal directories.
Click to hide internal directories.