Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created May 11, 2019 16:55
Show Gist options
  • Save vladbatushkov/4b70acb8d67f90e8b57853153b9beb27 to your computer and use it in GitHub Desktop.
Save vladbatushkov/4b70acb8d67f90e8b57853153b9beb27 to your computer and use it in GitHub Desktop.
Parse bands.
MATCH (g:Genre)
CALL apoc.load.html("https://last.fm" + g.url + "/artists", { data: "h3.big-artist-list-title a" }) YIELD value
UNWIND value.data as n
MERGE (b:Band { name: n.text })
MERGE (b)-[:OF]->(g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment