Skip to content

Instantly share code, notes, and snippets.

@erikgregorywebb
Created May 12, 2021 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikgregorywebb/d0445316094bd240b0e00080e21d9cdd to your computer and use it in GitHub Desktop.
Save erikgregorywebb/d0445316094bd240b0e00080e21d9cdd to your computer and use it in GitHub Desktop.
library(rvest)
url = 'https://genius.com/#top-songs'
page = read_html(url)
top_songs = page %>% html_nodes('.qsIlk') %>% html_attr('href')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment