Skip to content

Instantly share code, notes, and snippets.

@simonw
Created February 26, 2016 18:10
Show Gist options
  • Save simonw/4e563e4137f93847a147 to your computer and use it in GitHub Desktop.
Save simonw/4e563e4137f93847a147 to your computer and use it in GitHub Desktop.
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