Skip to content

Instantly share code, notes, and snippets.

@simonw
Created February 26, 2016 18:10
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Screen scraping with GraphiQL and gdom - http://gdom.graphene-python.org/ / https://github.com/syrusakbary/gdom/
{
page(url:"http://www.eventbrite.com/") {
title: text(selector:"title")
cards: query(selector:"div.poster-card") {
name: text(selector:"[itemprop=name]")
url: attr(selector:"meta[itemprop=url]", name:"content")
image_src: attr(selector:".js-poster-image", name:"src")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment