Skip to content

Commit

Permalink
Now able to scrape artist name and track title
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pierce committed Sep 7, 2021
1 parent c7bdc73 commit 74ccd01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func GetLinks(doc *goquery.Document) ([]string, error) {
var songList []string

doc.Find(".chart-list__element .display--flex").Each(func(i int, s *goquery.Selection) {
songTitle := s.Find(".chart-element__information").Text()
songTitle := s.Find(".chart-element__information__song").Text()
songArtist := s.Find(".chart-element__information__artist").Text()
fmt.Println(songArtist)
fmt.Println(songTitle)
//fmt.Println(s)
})
Expand Down

0 comments on commit 74ccd01

Please sign in to comment.