Created
February 26, 2016 18:10
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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