Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created May 11, 2019 16:54
Show Gist options
  • Save vladbatushkov/d92b4319763c99a5c5231fb699aaecc7 to your computer and use it in GitHub Desktop.
Save vladbatushkov/d92b4319763c99a5c5231fb699aaecc7 to your computer and use it in GitHub Desktop.
Parse genres.
CALL apoc.load.html("https://www.last.fm/music", { data: "a.music-more-tags-tag-inner-wrap, section.music-section:eq(0) a.music-featured-item-heading-link" }) YIELD value
UNWIND value.data as n
MERGE (g:Genre { url: n.attributes.href, name: apoc.text.capitalizeAll(n.text) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment