Skip to content

Commit

Permalink
Merge pull request #150 from Lukas0907/derstandard
Browse files Browse the repository at this point in the history
derStandard.at: Improvements
  • Loading branch information
Lukas0907 committed Aug 14, 2018
2 parents d918a7e + dab3dc1 commit 0bf9ab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion feeds/spiders/derstandard_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def _parse_article(self, response):
}
replace_elems = {
".embedded-posting": "<p><em>Hinweis: Das eingebettete Posting ist nur "
+ "im Artikel verfügbar.</em></p>"
+ "im Artikel verfügbar.</em></p>",
".js-embed-output": "<p><em>Hinweis: Der eingebettete Inhalt ist nur "
+ "im Artikel verfügbar.</em></p>",
}
il = FeedEntryItemLoader(
response=response,
Expand All @@ -104,6 +106,7 @@ def _parse_article(self, response):
il.add_css("author_name", "span.author::text")
il.add_value("path", response.meta["ressort"])
il.add_value("updated", response.meta["updated"])
il.add_css("category", "#breadcrumb .item a::text")
blog_id = response.css("#userblogentry::attr(data-objectid)").extract_first()
if blog_id:
url = (
Expand Down

0 comments on commit 0bf9ab9

Please sign in to comment.