Created
December 8, 2016 00:33
-
-
Save flexzuu/35025b9aaba212734e0fcbf44e3282fe to your computer and use it in GitHub Desktop.
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: 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