Testing Go, Scribbling, Learning, etc
Scrapes all the recommended videos from the first video by BFS
YTScraper module scrapes videos recursively through the recommended videos
type Scraper interface {
Scrape(videoId string, depth int, wg *sync.WaitGroup, relation int)
getVideoInfo(vidInfo chan<- Video, url string)
}
YTScraper implements the Scraper
interface
GoroutinesChangegetVideoInfo
to use the Youtube API- Youtube playlist generator
- Add option to use plain web scraping instead of Youtube API (API cost for getting related videos is very high)
-
Goquery For exploring HTML nodes