Skip to content

Commit

Permalink
Merge pull request #188 from Lukas0907/next
Browse files Browse the repository at this point in the history
Small extraction fixes
  • Loading branch information
Lukas0907 committed Nov 23, 2018
2 parents c7a5da0 + a95cf77 commit d3b7f6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions feeds/spiders/falter_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ def parse_lokalfuehrer(self, response):
"content_html",
"<p>{} {}, {}</p>".format(entry["zip"], entry["city"], entry["street"]),
)
il.add_value(
"content_html",
(
'<p><a href="https://www.google.com/maps?q={lat},{lon}">'
+ "Google Maps</a></p>"
).format(**entry["location"]),
)
if entry["location"]:
il.add_value(
"content_html",
(
'<p><a href="https://www.google.com/maps?q={lat},{lon}">'
+ "Google Maps</a></p>"
).format(**entry["location"]),
)
yield il.load_item()

def parse_archive(self, response):
Expand Down
2 changes: 1 addition & 1 deletion feeds/spiders/python_patterns_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ def _parse_article(self, response):
).decode("ascii")
il.add_value("updated", updated)
il.add_css("title", "title::text")
il.add_css("content_html", "body > .section")
il.add_css("content_html", ".section")
return il.load_item()

0 comments on commit d3b7f6c

Please sign in to comment.