Skip to content

Commit

Permalink
cbird.at: strip slashes before splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Preinstorfer committed Sep 7, 2018
1 parent 27a20f1 commit ddff141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feeds/spiders/cbird_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def parse_item(self, response):
il.add_xpath("title", "h1/text()")
il.add_value("link", response.url)
il.add_xpath("content_html", "h1/following-sibling::*")
il.add_value("updated", response.url.split("/")[-1].split("_")[0])
il.add_value("updated", response.url.rstrip("/").split("/")[-1].split("_")[0])
il.add_value("author_name", self.name)
yield il.load_item()

Expand Down

0 comments on commit ddff141

Please sign in to comment.