Skip to content

Instantly share code, notes, and snippets.

@flexzuu
Created December 8, 2016 00:33
Show Gist options
  • Save flexzuu/35025b9aaba212734e0fcbf44e3282fe to your computer and use it in GitHub Desktop.
Save flexzuu/35025b9aaba212734e0fcbf44e3282fe to your computer and use it in GitHub Desktop.
{
page: page(url: "http://www.mittelhessen.de/lokales/region-wetzlar_artikel,-21-Jaehrige-bei-Frontalzusammenstoss-lebensgefaehrlich-verletzt-_arid,809009.html") {
content: query(selector: ".article.detail") {
heading: text(selector: "h1.article_headline")
date: text(selector: ".article_date")
category: text(selector: ".article_category")
teaser: text(selector: ".article_teaser")
body: query(selector: ".article_body p"){
text
}
}
}
pages: page(url: "http://www.mittelhessen.de") {
items: query(selector: ".contentbox.article:not(.topay)") {
heading: text(selector: ".article_headline")
link: attr(selector: ".article_headline>a", name: "href")
category: text(selector: ".article_category")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment