Skip to content

james0248/GoPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Playground

Testing Go, Scribbling, Learning, etc

Youtube Scraper

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

TODO

  • Goroutines
  • Change getVideoInfo 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)

Dependencies

About

Learn Go, Test Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages