add 'text.parse_float()' + cleanup in text.py

This commit is contained in:
Mike Fährmann
2019-01-29 13:14:30 +01:00
parent 0c32dc5858
commit 2d2953a5bf
4 changed files with 46 additions and 15 deletions

View File

@@ -103,7 +103,7 @@ class BehanceGalleryExtractor(BehanceExtractor):
"gallery_id": text.parse_int(self.gallery_id),
"title": text.unescape(title or ""),
"user": ", ".join(users),
"fields": [f for f in text.split_html(fields) if f != ", "],
"fields": [f for f in text.split_html(fields) if f != ","],
"date": text.parse_int(date),
"views": text.parse_int(stats[0]),
"votes": text.parse_int(stats[1]),